Weather Cronjob #16269
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 Cronjob" | |
on: | |
schedule: | |
- cron: '*/15 * * * *' | |
push: | |
branches: | |
- 'main' | |
jobs: | |
update-weather: | |
permissions: write-all | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Generate README | |
uses: ePlus-DEV/[email protected] | |
with: | |
city: 'Rio de Janeiro' | |
days: 7 | |
weather-api-key: ${{ secrets.WEATHER_API_KEY }} | |
template-file: 'README.md.template' | |
out-file: 'README.md' | |
- name: Commit | |
run: | | |
git config user.name "Fatal1tyBarucco" | |
git config user.email [email protected] | |
git add . | |
git commit -m "update weather Rio de Janeiro ☁️🌤️⛈️🌩️🌧️ ($(TZ="America/Sao_Paulo" date +'%d-%m-%Y %H:%M:%S'))" | |
git push origin main |