-
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
9b0b764
commit 2a51fb7
Showing
1 changed file
with
11 additions
and
2 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 |
---|---|---|
|
@@ -128,7 +128,16 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@master | ||
uses: actions/checkout@v2 | ||
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 | ||
|
@@ -145,7 +154,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 | ||
git push origin HEAD:${{ env.branch }} | ||
post-slack-tag-update-success: | ||
name: Post slack message for tag update success | ||
|