|
4 | 4 | schedule:
|
5 | 5 | - cron: "0 7 * * 1" # Run every Monday at 7am UTC
|
6 | 6 | # | | | | |
|
7 |
| - # | | | | day of the week (0–6) (Sunday to Saturday) |
8 |
| - # | | | month (1–12) |
9 |
| - # | | day of the month (1–31) |
10 |
| - # | hour (0–23) |
11 |
| - # minute (0–59) |
| 7 | + # | | | | day of the week (0-6) (Sunday to Saturday) |
| 8 | + # | | | month (1-12) |
| 9 | + # | | day of the month (1-31) |
| 10 | + # | hour (0-23) |
| 11 | + # minute (0-59) |
12 | 12 | workflow_dispatch: # Enables manual trigger
|
13 | 13 |
|
14 | 14 | jobs:
|
15 | 15 | update_dependencies:
|
16 | 16 | name: Update dependencies
|
17 | 17 | runs-on: ubuntu-latest
|
18 | 18 | steps:
|
19 |
| - - name: Checks-out repository |
20 |
| - uses: actions/checkout@v4 |
21 |
| - - name: Set up Python 3.12 |
22 |
| - uses: actions/setup-python@v5 |
23 |
| - with: |
24 |
| - python-version: "3.12" |
25 |
| - - name: Install dependencies |
26 |
| - run: | |
27 |
| - python -m pip install --upgrade pip |
28 |
| - python -m pip install requests |
29 |
| - - name: Set Git user |
30 |
| - run: | |
31 |
| - git config user.name 'GitHub' |
32 |
| - git config user.email '<noreply@github.com>' |
33 |
| - - name: Run update script |
34 |
| - run: python3 .github/workflows/update-deps.py --debug --bump=major |
35 |
| - - name: Check if commits were made |
36 |
| - run: | |
37 |
| - if [[ $(git log --oneline -1 --author="GitHub") ]]; then |
38 |
| - echo "COMMIT_MADE=true" >> $GITHUB_ENV |
39 |
| - fi |
40 |
| - - name: Create Pull Request |
41 |
| - if: env.COMMIT_MADE == 'true' |
42 |
| - uses: cfengine/create-pull-request@v6 |
43 |
| - with: |
44 |
| - title: Updated dependencies |
45 |
| - body: Automated dependency updates |
46 |
| - reviewers: | |
47 |
| - olehermanse |
48 |
| - larsewi |
49 |
| - craigcomstock |
50 |
| - branch: update-dependencies-action |
51 |
| - branch-suffix: timestamp |
| 19 | + - name: Checks-out repository |
| 20 | + uses: actions/checkout@v4 |
| 21 | + - name: Set up Python 3.12 |
| 22 | + uses: actions/setup-python@v5 |
| 23 | + with: |
| 24 | + python-version: "3.12" |
| 25 | + - name: Install dependencies |
| 26 | + run: | |
| 27 | + python -m pip install --upgrade pip |
| 28 | + python -m pip install requests |
| 29 | + - name: Set Git user |
| 30 | + run: | |
| 31 | + git config user.name 'GitHub' |
| 32 | + git config user.email '<noreply@github.com>' |
| 33 | + - name: Run update script |
| 34 | + run: python3 .github/workflows/update-deps.py --debug --bump=major |
| 35 | + - name: Check if commits were made |
| 36 | + run: | |
| 37 | + if [[ $(git log --oneline -1 --author="GitHub") ]]; then |
| 38 | + echo "COMMIT_MADE=true" >> $GITHUB_ENV |
| 39 | + fi |
| 40 | + - name: Create Pull Request |
| 41 | + if: env.COMMIT_MADE == 'true' |
| 42 | + uses: cfengine/create-pull-request@v6 |
| 43 | + with: |
| 44 | + title: Updated dependencies |
| 45 | + body: Automated dependency updates |
| 46 | + reviewers: | |
| 47 | + olehermanse |
| 48 | + larsewi |
| 49 | + craigcomstock |
| 50 | + branch: update-dependencies-action |
| 51 | + branch-suffix: timestamp |
0 commit comments