Update README.md #9978
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 README.md | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "*/15 * * * *" | |
push: | |
branches: [ "main" ] | |
permissions: | |
contents: write | |
jobs: | |
build: | |
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: make | |
- name: Test | |
run: make test | |
- name: Run | |
run: ./aoc | |
env: | |
SESSION: ${{ secrets.SESSION }} | |
- name: Commit README | |
run: | | |
git config --global user.name 'Enrico Candino' | |
git config --global user.email '[email protected]' | |
if [[ `git status --porcelain` ]]; then | |
git commit -am "Automated commit" | |
git push | |
fi | |