Skip to content

aoc-cron

aoc-cron #14017

Workflow file for this run

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/add-and-commit@v9.1.1
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 <UserName@users.noreply.github.com>
# - user_info -> Your Display Name <your-actual@email.com>
# - 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.'