-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
1 changed file
with
2 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 "[email protected]" | ||
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/[email protected] | ||
/tmp/go-licenses csv ./cmd/apigeecli > third-party-licenses.txt || echo "Ignore warnings" | ||
|
@@ -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 |