Skip to content

Commit

Permalink
feat: create run-script.yml for Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ferclager authored Aug 23, 2024
1 parent 728b997 commit 677057b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/run-script.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Go Weather Bot

on:
schedule:
- cron: '30 13 * * *'

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Make envfile
uses: SpicyPizza/[email protected]
with:
envkey_KEY_WEATHER: ${{ secrets.KEY_WEATHER }}
envkey_TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
envkey_TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
file_name: .env
fail_on_empty: false
sort_keys: false
- name: execute my script
run: go run weatherBot.go -cityName=MexicoCity -request=WF

0 comments on commit 677057b

Please sign in to comment.