-
-
Notifications
You must be signed in to change notification settings - Fork 21
33 lines (31 loc) · 960 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: update-docs
on: [ push ]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.ACCESS_TOKEN }}
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
- name: Run CI
run: |
go get
go mod tidy
go run ./ci
- name: Push changes
run: |
git config --global user.name 'MarvinJWendt' || exit 0
git config --global user.email '[email protected]' || exit 0
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY || exit 0
git checkout "${GITHUB_REF:11}" || exit 0
git add . || exit 0
git commit -am "docs: autoupdate" || exit 0
git push || exit 0
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}