Skip to content

Commit

Permalink
Merge pull request #581 from apigee/issue580
Browse files Browse the repository at this point in the history
fix: use short SHA in branch creation
  • Loading branch information
ssvaidyanathan authored Nov 6, 2024
2 parents 1c35e74 + 2e68014 commit 1c970f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/gen-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ jobs:
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 #v4
- name: Push GH Pages
run: |
SHORT_SHA=$(git rev-parse --short $GITHUB_SHA)
git config pull.rebase false
git config --global user.name "$(git log -n 1 --pretty=format:%an)"
git config --global user.email "$(git log -n 1 --pretty=format:%ae)"
git pull origin main --allow-unrelated-histories
git checkout -b docs_$GITHUB_SHA
git checkout -b docs_$SHORT_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 Down

0 comments on commit 1c970f0

Please sign in to comment.