Skip to content

Commit

Permalink
Use jq
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Jul 5, 2023
1 parent 4fb53ec commit cd60bcc
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,19 @@ jobs:
run: |
NEW_VERSION=$(node -p 'require("./package.json").version')
echo "version=v$NEW_VERSION" >> $GITHUB_OUTPUT
cat > CHANGELOG.md << PR_BODY
${{ github.event.pull_request.body }}
PR_BODY
- name: Create a git tag
if: github.event.pull_request.merged == true
run: git tag $NEW_VERSION && git push --tags
env:
NEW_VERSION: ${{ steps.version.outputs.version }}
run: git tag ${{ steps.version.outputs.version }} && git push --tags

- name: GitHub release
if: success()
uses: actions/create-release@v1
uses: softprops/action-gh-release@v1
id: create_release
with:
draft: true
prerelease: false
release_name: ${{ steps.version.outputs.version }}
name: ${{ steps.version.outputs.version }}
tag_name: ${{ steps.version.outputs.version }}
body_path: CHANGELOG.md
body: ${{ github.event.pull_request.body }}
env:
GITHUB_TOKEN: ${{ github.token }}

0 comments on commit cd60bcc

Please sign in to comment.