dep: update module github.com/google/go-github/v66 to v67 (#513) #648
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
on: | |
push: | |
branches: | |
- master | |
name: Generate docs | |
permissions: | |
contents: read | |
jobs: | |
build: | |
permissions: | |
contents: write # for Git to git push | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: Set up Go | |
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
go-version-file: "go.mod" | |
id: go | |
- name: Generate docs | |
run: go run ./tools/docs/main.go | |
- name: Commit changes | |
continue-on-error: true | |
run: | | |
git config user.email "johan@lindell.me" | |
git config user.name "Automated docs generator" | |
git checkout . | |
git checkout docs -- | |
mv tmp-docs/* ./ | |
git add * | |
git commit -m "Updated docs" | |
- name: Push changes | |
if: ${{ success() }} | |
run: | | |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY | |
git push |