-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.11 KB
/
main.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
38
39
40
41
42
43
44
45
name: Restart stopped workflows
on:
push:
branches:
- main
schedule:
- cron: '0 */6 * * *'
jobs:
run:
name: Restart stopped workflows
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: 3.12
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run script
run: |
python app.py
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Commit
run: |
git config --global user.email "[email protected]"
git config --global user.name "Code for IATI bot"
git commit --amend --no-edit
- name: Push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GH_TOKEN }}
branch: main
force: true