Update main.go #9
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
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
summarizer: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12.7' | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22.1' | |
# Step 3: Run setup.sh to install necessary dependencies | |
- name: Run setup.sh | |
run: | | |
chmod +x setup.sh | |
./setup.sh | |
- name: Run summarizer script | |
run: | | |
export BOT_TOKEN=${{ secrets.BOT_TOKEN }} | |
export CHAT_ID=${{ secrets.CHAT_ID }} | |
go run ./main.go | |