Skip to content

Commit

Permalink
Merge pull request #573 from apigee/issue572
Browse files Browse the repository at this point in the history
bug: fixes error in writing to main #572
  • Loading branch information
ssvaidyanathan authored Nov 6, 2024
2 parents 63e83f1 + 287ae66 commit 4229103
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/gen-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ jobs:
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 #v4
- name: Push GH Pages
run: |
TAG_NAME=${GITHUB_REF##*/}
git config pull.rebase false
git config --global user.name "apigeecli Publish Action"
git config --global user.email "[email protected]"
git pull origin main --allow-unrelated-histories
git checkout -b docs_$TAG_NAME
GOBIN=/tmp/ go install github.com/google/[email protected]
/tmp/go-licenses csv ./cmd/apigeecli > third-party-licenses.txt || echo "Ignore warnings"
Expand All @@ -48,4 +51,4 @@ jobs:
git add --all
git commit -m "Update GH Pages - $GITHUB_SHA" || echo "No Changes in docs"
git push origin HEAD:refs/heads/main
git push orgin docs_$TAG_NAME

0 comments on commit 4229103

Please sign in to comment.