mirror of
https://github.com/esphome/home-assistant-addon.git
synced 2024-12-17 15:57:46 +01:00
Merge two release steps into one (#72)
This commit is contained in:
parent
e29fc7f725
commit
cb52dabfbf
17
.github/workflows/bump-version.yml
vendored
17
.github/workflows/bump-version.yml
vendored
@ -47,8 +47,7 @@ jobs:
|
|||||||
git push
|
git push
|
||||||
COMMIT=$(git rev-parse HEAD)
|
COMMIT=$(git rev-parse HEAD)
|
||||||
echo "::set-output name=commit_sha::${COMMIT}"
|
echo "::set-output name=commit_sha::${COMMIT}"
|
||||||
- if: ${{ contains(github.event.inputs.version, 'b') }}
|
- name: Create a Release
|
||||||
name: Create Beta Release
|
|
||||||
uses: actions/create-release@v1.1.4
|
uses: actions/create-release@v1.1.4
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
env:
|
env:
|
||||||
@ -57,17 +56,5 @@ jobs:
|
|||||||
tag_name: ${{ github.event.inputs.version }}
|
tag_name: ${{ github.event.inputs.version }}
|
||||||
release_name: ${{ github.event.inputs.version }}
|
release_name: ${{ github.event.inputs.version }}
|
||||||
body: ${{ github.event.inputs.content }}
|
body: ${{ github.event.inputs.content }}
|
||||||
prerelease: true
|
prerelease: ${{ contains(github.event.inputs.version, 'b') }}
|
||||||
commitish: ${{ steps.commit_version.outputs.commit_sha }}
|
|
||||||
- if: ${{ !contains(github.event.inputs.version, 'b') }}
|
|
||||||
name: Create Stable Release
|
|
||||||
uses: actions/create-release@v1.1.4
|
|
||||||
continue-on-error: true
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
tag_name: ${{ github.event.inputs.version }}
|
|
||||||
release_name: ${{ github.event.inputs.version }}
|
|
||||||
body: ${{ github.event.inputs.content }}
|
|
||||||
prerelease: false
|
|
||||||
commitish: ${{ steps.commit_version.outputs.commit_sha }}
|
commitish: ${{ steps.commit_version.outputs.commit_sha }}
|
||||||
|
Loading…
Reference in New Issue
Block a user