Skip to content

Commit

Permalink
Fix doc step with branch
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Feb 26, 2025
1 parent 0c0663c commit d7f2928
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,16 @@ jobs:
with:
fetch-depth: 0
- run: |
JOB_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs/${{ github.job }}"
JOB_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
TEMP_BRANCH="update-document-v${GEM_VERSION}"
# Create and checkout a new branch from the tag
git checkout -b "${TEMP_BRANCH}" "v${GEM_VERSION}"
git push origin "${TEMP_BRANCH}"
gh pr create \
--base release \
--head master \
--head "${TEMP_BRANCH}" \
--title "Update document v${GEM_VERSION}" \
--body "This is an auto-generated PR to update documentation from [here](${JOB_URL}). Please merge (with a merge commit) when ready." \
--label "docs"

0 comments on commit d7f2928

Please sign in to comment.