-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b95ddbe
commit 8b022c7
Showing
1 changed file
with
1 addition
and
8 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 |
---|---|---|
|
@@ -133,13 +133,6 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: Determine the current branch | ||
id: determine_branch | ||
run: | | ||
branch=$(git branch -r --contains $GITHUB_SHA | grep -v '\->' | grep -E 'origin/(main|master|develop|feature|fix)' | head -n 1 | sed 's|origin/||') | ||
echo "branch=$branch" >> $GITHUB_ENV | ||
echo "Determined branch: $branch" | ||
- name: update package.json version | ||
if: needs.prepare.outputs.version | ||
run: | | ||
|
@@ -155,7 +148,7 @@ jobs: | |
git config --global user.email '[email protected]' | ||
git add package.json | ||
git commit -m "chore: update package.json version to ${{ needs.prepare.outputs.version }}" | ||
git push origin HEAD:${{ env.branch }} | ||
git push -f --tags origin HEAD:${{ github.ref_name }} | ||
post-slack-tag-update-success: | ||
name: Post slack message for tag update success | ||
|