aoc-cron #17171
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: aoc-cron | |
on: | |
schedule: | |
- cron: '*/15 * * * *' | |
jobs: | |
cron: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- name: Build | |
run: go build -o main . | |
- name: Run | |
run: ./main | |
env: | |
googleChatUrl: ${{ secrets.GOOGLE_CHAT_URL }} | |
sessionCookie: ${{ secrets.SESSION_COOKIE }} | |
leaderboardUrl: ${{ secrets.LEADERBOARD_URL }} | |
- name: Add & Commit | |
uses: EndBug/[email protected] | |
with: | |
# The arguments for the `git add` command (see the paragraph below for more info) | |
# Default: '.' | |
add: 'saved.json' | |
# Determines the way the action fills missing author name and email. Three options are available: | |
# - github_actor -> UserName <[email protected]> | |
# - user_info -> Your Display Name <[email protected]> | |
# - github_actions -> github-actions <email associated with the github logo> | |
# Default: github_actor | |
default_author: github_actions | |
# Arguments for the git fetch command. If set to false, the action won't fetch the repo. | |
# For more info as to why fetching is usually recommended, please see the "Performance on large repos" FAQ. | |
# Default: --tags --force | |
fetch: '--tags --force' | |
# The message for the commit. | |
# Default: 'Commit from GitHub Actions (name of the workflow)' | |
message: '[ci] Update leaderboard json.' |