-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix release branch #121
Fix release branch #121
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -31,6 +31,15 @@ jobs: | |||||
- name: Branch already exists | ||||||
if: ${{env.branch_exists == 'true'}} | ||||||
run: echo "message=Branch `${{env.release_branch}}` already exists." >> $GITHUB_ENV | ||||||
- name: Commit Empty commit and push changes | ||||||
run: | | ||||||
git config --global user.email "[email protected]" | ||||||
git config --global user.name "GitHub Actions" | ||||||
git checkout ${{env.release_branch}} | ||||||
git add . | ||||||
git pull origin ${{ env.release_branch }} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use - git pull origin ${{ env.release_branch }}
+ git pull --rebase origin ${{ env.release_branch }} This change helps maintain a cleaner commit history by rebasing local changes on top of the fetched branch. Committable suggestion
Suggested change
|
||||||
git commit --allow-empty -m "Release branch creation commit" | ||||||
git push origin ${{ env.release_branch }} | ||||||
- name: Send message on Slack | ||||||
uses: archive/[email protected] | ||||||
id: notify | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Configure Git user locally instead of globally.
This change ensures that the configuration does not affect other actions running in the same runner.
Committable suggestion