Extract Weather Reports Data #690
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: Extract Weather Reports Data | |
on: | |
schedule: | |
- cron: "35 * * * *" | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
download-weather-report: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Run script | |
run: | | |
chmod +x script.sh | |
./script.sh | |
- name: Configure Git | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
- name: Commit and push changes | |
run: | | |
git add result.log | |
git commit -m "Update weather report log [skip ci]" || echo "No changes to commit" | |
git push |