ci: update dependencies #202446
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |