-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: updated release pipeline to fix deprecated github action usages (#…
…180)
- Loading branch information
1 parent
c8f72bf
commit 3a0db1c
Showing
1 changed file
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | | ||
|
@@ -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: | ||
|