Weather #60527
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: "Weather" | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "*/30 * * * *" # Runs every 30 minutes | |
jobs: | |
update_blogs: | |
name: "Update Blogs" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "📥 Fetching Repository Contents" | |
uses: actions/checkout@main | |
- name: "🌨️ Fetching Weather Forecast" | |
uses: ./ | |
with: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
OPEN_WEATHER_TOKEN: ${{secrets.OPEN_WEATHER_TOKEN}} | |
CITY: "Wellington, New Zealand" | |
- name: "🛠️ Push changes to GitHub" | |
run: | |
git config --global user.email readme-bot@example.com && git config --global user.name readme-bot; | |
git diff --quiet && git diff --staged --quiet || git commit -am '[BOT] Update Readme' && git push; |