fix(gitlab): make sure entire project path is shown (#392) #511
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 readme | |
jobs: | |
build: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "^1.15.5" | |
id: go | |
- name: Generate readme | |
run: go run ./tools/readme-docs/main.go | |
- name: Commit changes | |
continue-on-error: true | |
run: | | |
git checkout master | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
git config user.name "github-actions[bot]" | |
git add README.md | |
COAUTHOR=`git log -1 --pretty=format:'Co-authored-by: %an <%ae>'` | |
git commit -m "docs: updated readme" -m "$COAUTHOR" | |
- name: Push changes | |
if: ${{ success() }} | |
run: | | |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY | |
git push |