Skip to content

Commit

Permalink
update release GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
ThierryO committed Jun 7, 2023
1 parent 808a070 commit 68c3625
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ jobs:
- uses: actions/checkout@v3
- name: Get tag message
run: |
TAG_BODY=$(git tag --contains ${{ github.sha }} -n100 | awk '(NR>1)')
echo "::set-output name=TAG_BODY::$TAG_BODY"
TAG=$(git tag --contains $(git rev-parse HEAD))
TAG_BODY=$(git tag --contains {{ github.sha }} -n100 | awk '(NR>1)')
echo "TAG=$TAG" >> $GITHUB_OUTPUT
echo "TAG_BODY=$TAG_BODY" >> $GITHUB_OUTPUT
id: tag-body
- uses: ncipollo/release-action@v1
with:
name: Release ${{ github.ref }}
name: Release ${{ steps.tag-body.outputs.TAG }}
tag: ${{ steps.tag-body.outputs.TAG }}
body: ${{ steps.tag-body.outputs.TAG_BODY }}
9 changes: 6 additions & 3 deletions inst/package_template/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ jobs:
- uses: actions/checkout@v3
- name: Get tag message
run: |
TAG_BODY=$(git tag --contains ${{ github.sha }} -n100 | awk '(NR>1)')
echo "::set-output name=TAG_BODY::$TAG_BODY"
TAG=$(git tag --contains $(git rev-parse HEAD))
TAG_BODY=$(git tag --contains {{ github.sha }} -n100 | awk '(NR>1)')
echo "TAG=$TAG" >> $GITHUB_OUTPUT
echo "TAG_BODY=$TAG_BODY" >> $GITHUB_OUTPUT
id: tag-body
- uses: ncipollo/release-action@v1
with:
name: Release ${{ github.ref }}
name: Release ${{ steps.tag-body.outputs.TAG }}
tag: ${{ steps.tag-body.outputs.TAG }}
body: ${{ steps.tag-body.outputs.TAG_BODY }}

0 comments on commit 68c3625

Please sign in to comment.