Skip to content

Commit

Permalink
ci: updated release pipeline to fix deprecated github action usages (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickjahns authored May 12, 2023
1 parent c8f72bf commit 3a0db1c
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
if: "contains(github.event.head_commit.message, '[RELEASE]')"
steps:
- uses: actions/checkout@master

- name: extract version from commit message
shell: bash
run: |
Expand All @@ -34,17 +35,20 @@ jobs:
CHANGELOG="${CHANGELOG//'%'/'%25'}"
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
echo "::set-output name=version::${VERSION}"
echo "::set-output name=changelog::${CHANGELOG}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "changelog=${CHANGELOG}" >> $GITHUB_OUTPUT
env:
COMMIT_MSG: ${{ github.event.head_commit.message }}
id: version
- uses: avakar/tag-and-release@v1
with:
body: ${{ steps.version.outputs.changelog }}
tag_name: ${{ steps.version.outputs.version }}

- name: create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_NOTES: ${{ steps.version.outputs.changelog }}
RELEASE_TAG: ${{ steps.version.outputs.version }}
run: |
gh release create "${GITHUB_TOKEN}" -n "${RELEASE_NOTES}
- name: galaxy
uses: robertdebock/[email protected]
with:
Expand Down

0 comments on commit 3a0db1c

Please sign in to comment.