Skip to content
Merged
Changes from 1 commit
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
Next Next commit
Creating/updating the stable branch after the release.
Signed-off-by: lrangine <19699092+lokeshrangineni@users.noreply.github.com>
  • Loading branch information
lokeshrangineni committed Feb 4, 2025
commit 727fcd4687c01fcf47969b77fad10b74bc218dc2
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
persist-credentials: true
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this needed?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh i see to execute the checkout of the stable branch

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because we are doing git push in later steps we need this credentials to be carried to next step in the current job.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah that makes sense, i realized after.

- name: Setup Node.js
uses: actions/setup-node@v3
with:
Expand All @@ -179,3 +179,11 @@ jobs:
if: github.event.inputs.dry_run == 'false'
run: |
npx -p @semantic-release/changelog -p @semantic-release/git -p @semantic-release/exec -p semantic-release semantic-release

- name: Create or update stable branch after release.
Comment thread
lokeshrangineni marked this conversation as resolved.
Outdated
if: github.event.inputs.dry_run == 'false'
run: |
git fetch origin
git checkout -B stable
Comment thread
redhatHameed marked this conversation as resolved.
Comment thread
lokeshrangineni marked this conversation as resolved.
git reset --hard origin/${GITHUB_REF##*/}
git push -f origin stable