Skip to content

Commit 9400718

Browse files
andylolzcodeforIATIbot
authored andcommitted
ci: update dependencies
1 parent 88502cc commit 9400718

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
11
name: Restart stopped workflows
22

33
on:
4+
push:
5+
branches:
6+
- main
7+
48
schedule:
59
- cron: '0 */6 * * *'
10+
611
jobs:
712
run:
813
name: Restart stopped workflows
914
runs-on: ubuntu-latest
1015
steps:
1116
- name: Checkout
12-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1318
with:
1419
fetch-depth: 0
1520
persist-credentials: false
16-
- name: Set up Python 3.7
17-
uses: actions/setup-python@v1
18-
with:
19-
python-version: 3.7
20-
- uses: actions/cache@v2
21-
name: Cache dependencies
21+
- name: Set up Python 3.12
22+
uses: actions/setup-python@v4
2223
with:
23-
path: ~/.cache/pip
24-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
25-
restore-keys: |
26-
${{ runner.os }}-pip-
24+
python-version: 3.12
25+
cache: pip
2726
- name: Install dependencies
2827
run: |
2928
python -m pip install --upgrade pip
@@ -39,7 +38,7 @@ jobs:
3938
git config --global user.name "Code for IATI bot"
4039
git commit --amend --no-edit
4140
- name: Push changes
42-
uses: ad-m/github-push-action@21d44fe9270fd489e49fb30c9590d40adb3abc40
41+
uses: ad-m/github-push-action@v0.8.0
4342
with:
4443
github_token: ${{ secrets.GH_TOKEN }}
4544
branch: main

0 commit comments

Comments
 (0)