Skip to content

Commit

Permalink
cicd(CHN-208): set github username and email for creating tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff-Tian committed Mar 22, 2024
1 parent b2033e5 commit 0f22bb4
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,16 @@ jobs:
echo "::set-output name=version_changed::false"
fi
- name: Create tag
id: create_tag
if: steps.check_version.outputs.version_changed == 'true'
run: git tag ${{ steps.get_current_version.outputs.current_version }} -m "Release ${{ steps.get_current_version.outputs.current_version }}"

- name: Push tag
- name: Create and Push Tag
id: push_tag
if: steps.check_version.outputs.version_changed == 'true'
run: git push origin ${{ steps.get_current_version.outputs.current_version }}
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git tag -a "${{ steps.get_current_version.outputs.current_version }}" -m "Generated tag from GitHub Actions"
git push origin "${{ steps.get_current_version.outputs.current_version }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create release
id: create_release
Expand Down

0 comments on commit 0f22bb4

Please sign in to comment.