File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change 1
1
name : Restart stopped workflows
2
2
3
3
on :
4
+ push :
5
+ branches :
6
+ - main
7
+
4
8
schedule :
5
9
- cron : ' 0 */6 * * *'
10
+
6
11
jobs :
7
12
run :
8
13
name : Restart stopped workflows
9
14
runs-on : ubuntu-latest
10
15
steps :
11
16
- name : Checkout
12
- uses : actions/checkout@v2
17
+ uses : actions/checkout@v4
13
18
with :
14
19
fetch-depth : 0
15
20
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
22
23
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
27
26
- name : Install dependencies
28
27
run : |
29
28
python -m pip install --upgrade pip
39
38
git config --global user.name "Code for IATI bot"
40
39
git commit --amend --no-edit
41
40
- name : Push changes
42
- uses : ad-m/github-push-action@21d44fe9270fd489e49fb30c9590d40adb3abc40
41
+ uses : ad-m/github-push-action@v0.8.0
43
42
with :
44
43
github_token : ${{ secrets.GH_TOKEN }}
45
44
branch : main
You can’t perform that action at this time.
0 commit comments