Update Gist #324
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: Update Gist | |
on: | |
schedule: | |
# 21 UTC is equivalent to 6 KST | |
# when the solved.ac streak updates | |
- cron: 0 21 * * * | |
push: | |
branches: | |
- main | |
# allow user to manually start the action | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
- name: Build | |
run: go build -v . | |
- name: Update | |
run: go run . | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
GIST_ID: ${{ secrets.GIST_ID }} | |
USERNAME: ${{ secrets.USERNAME }} |