Skip to content

Weather

Weather #60528

Workflow file for this run

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;