Skip to content

updateReadMe

updateReadMe #66563

Workflow file for this run

name: updateReadMe
on:
workflow_run:
workflows: [schedule]
types:
- completed
jobs:
update:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go 1.18
uses: actions/setup-go@v3
with:
go-version: 1.18
id: go
- name: Run update
env:
barkToken: ${{secrets.BARK_TOKEN}}
run: |
git config --local user.email "[email protected]"
git config --local user.name "Github Action"
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git pull --rebase
go build update.go utils.go
./update
rm update
git add .
git commit -m "Auto Update `date --rfc-3339=seconds`"
git push -f