Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: fixes error in writing to main #574 #575

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/gen-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,12 @@ 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 "apigeecli-bot@noreply.apigee.com"

git pull origin main --allow-unrelated-histories
git checkout -b docs_$TAG_NAME
git checkout -b docs_$GITHUB_SHA

GOBIN=/tmp/ go install github.com/google/go-licenses@v1.0.0
/tmp/go-licenses csv ./cmd/apigeecli > third-party-licenses.txt || echo "Ignore warnings"
Expand All @@ -51,4 +49,4 @@ jobs:

git add --all
git commit -m "Update GH Pages - $GITHUB_SHA" || echo "No Changes in docs"
git push orgin docs_$TAG_NAME
git push origin docs_$GITHUB_SHA