-
Notifications
You must be signed in to change notification settings - Fork 57
37 lines (35 loc) · 1.19 KB
/
material-insiders-update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Checking material insiders update
on:
# Automatic check monthly
schedule:
- cron: "0 10 1 * *"
# Manually triggered using GitHub's UI
workflow_dispatch:
jobs:
mkdocs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- uses: snok/install-poetry@v1
with:
version: 1.3.2
- name: Run material insiders script to check version.
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: ./.config/mkdocs/check-material-insiders-version.sh
- name: Create pull request if there is a new version
uses: peter-evans/create-pull-request@v7
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
commit-message: Update material insiders version to latest version
title: Update material insiders version to latest version
body: Verify the new version works and there are no side effects (theme color reverting). Confirm all checks are passing.
branch: update-material-insiders
branch-suffix: timestamp