Skip to content

Commit

Permalink
Create update_annexes.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CorentinPeutin authored May 2, 2024
1 parent 811202d commit 57b4af1
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/update_annexes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: update_annexes

on:
workflow_dispatch:
schedule:
- cron: "30 15 * * 0"

permissions: write-all

jobs:
refresh_config:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v3 # checkout the repository content to github runner.
- name: setup python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: execute py script
shell: bash
env:
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
totp_key: ${{ secrets.TOTP_KEY }}
run: |
bash update_annexes/update_annexe.sh $username $password $totp_key

0 comments on commit 57b4af1

Please sign in to comment.