Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick91 committed May 14, 2024
1 parent bc22554 commit bf443e3
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/update-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- feature/update
schedule:
- cron: "*/5 * * * *"

Expand All @@ -13,15 +14,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install pipx
run: python3 -m pip install --user pipx

- name: Ensure pipx bin is on PATH
run: |
echo "$HOME/.local/bin" >> $GITHUB_PATH
source $GITHUB_ENV
uses: actions/checkout@v4

- name: Run download-data script
run: pipx run scripts/download-data.py
Expand All @@ -35,9 +28,7 @@ jobs:
- name: Run pre-commit
run: pre-commit run --all-files

- name: Commit and push changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
git diff-index --quiet HEAD || (git commit -m "🆕 Update data" && git push origin main)
# - name: Commit and push changes
# run: |
# git config --global user.name "github-actions[bot]"
# git config --global user.email "github-actions[bot]@users.noreply.github.com"

0 comments on commit bf443e3

Please sign in to comment.