Skip to content

Commit

Permalink
feat(GH-8): Replace create and push tag step with a script
Browse files Browse the repository at this point in the history
  • Loading branch information
gavanlamb committed Jun 15, 2024
1 parent 1aaedab commit fcfb505
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
needs:
- build
env:
Expand All @@ -89,11 +91,12 @@ jobs:
fetch-depth: 0
fetch-tags: true
- name: Create and push tag
uses: thejeff77/action-push-tag@v1.0.0
with:
tag: ${{ env.tag }}
message: '${{ env.tag }}'
ref: ${{ github.head_ref }}
run: |
git config user.name '${{ github.actor }}'
git config user.email '${{ github.actor }}@users.noreply.github.com'
git remote set-url origin https://${{ github.actor }}:${{ github.token }}@github.com/${{ github.repository }}
git tag -a "${{ env.tag }}" "${{ github.head_ref }}" -m "${{ env.tag }}}"
git push origin "${{ env.tag }}"
- name: Create release notes
uses: mikepenz/release-changelog-builder-action@v5.0.0-a02
id: create-release-notes
Expand Down

0 comments on commit fcfb505

Please sign in to comment.