Skip to content

Commit

Permalink
actions/create-release@v1 is dead, use... (#19400)
Browse files Browse the repository at this point in the history
* actions/create-release@v1 is dead, use ncipollo/release-action@v1.8.0

Change-Id: I13d8ab0a953b7c697381d936d320c7a83cf6d8af
Signed-off-by: nickboldt <nboldt@redhat.com>

* fix typos

Change-Id: Icca70fd315cba8410651552868d573d1c2f748f6
Signed-off-by: nickboldt <nboldt@redhat.com>
  • Loading branch information
nickboldt committed Apr 7, 2021
1 parent 55c7511 commit c0829ae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ jobs:
allowUpdates: true
body: ${{ steps.generate-release-changelog.outputs.changelog }}
draft: false
name: Eclipse Che ${{ github.event.inputs.version}}
name: Eclipse Che ${{ github.event.inputs.version }}
omitBodyDuringUpdate: false
omitNameDuringUpdate: false
prerelease: false
tag: ${{ github.event.inputs.version}}
tag: ${{ github.event.inputs.version }}
token: ${{ secrets.CHE_BOT_GITHUB_TOKEN }}
17 changes: 10 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
fetch-depth: 0
- name: Check existing tag
run: |
if [[ "$FORCE_RECREATE_TAGS" == "false" ]] && [[ $(cd che && git ls-remote --exit-code origin refs/tags/${{ github.event.inputs.version}}) ]]; then
if [[ "$FORCE_RECREATE_TAGS" == "false" ]] && [[ $(cd che && git ls-remote --exit-code origin refs/tags/${{ github.event.inputs.version }}) ]]; then
echo "cannot create release, when tag already exists"
exit 1
fi
Expand Down Expand Up @@ -139,16 +139,19 @@ jobs:
./che/make-release.sh
- name: Create GH Release
id: create_release
uses: actions/create-release@v1
uses: ncipollo/release-action@v1.8.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.CHE_BOT_GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.inputs.version}}
release_name: Eclipse Che ${{ github.event.inputs.version}}
body: |
Eclipse Che ${{ github.event.inputs.version}}
allowUpdates: true
body: Eclipse Che ${{ github.event.inputs.version }}
draft: false
name: Eclipse Che ${{ github.event.inputs.version }}
omitBodyDuringUpdate: false
omitNameDuringUpdate: false
prerelease: false
tag: ${{ github.event.inputs.version }}
token: ${{ secrets.CHE_BOT_GITHUB_TOKEN }}
- name: Create failure MM message
if: ${{ failure() }}
run: |
Expand Down

0 comments on commit c0829ae

Please sign in to comment.