Daily Run #202
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: Daily Run | |
on: | |
schedule: | |
- cron: '0 0 * * *' # Runs daily at midnight UTC | |
- cron: '0 12 * * *' # Runs daily at noon UTC | |
workflow_dispatch: # Allows manual triggering | |
push: | |
branches: | |
- main | |
jobs: | |
run-script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@main | |
- name: Run get_zipped.sh script | |
run: bash ./scripts/get_zipped.sh | |
- 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 . | |
if git diff-index --quiet HEAD; then | |
echo "No changes to commit" | |
else | |
git commit -m 'Update results from daily run' | |
git push | |
fi | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload artifact | |
uses: actions/upload-artifact@main | |
with: | |
name: results-zip | |
path: results/*.zip |