- simplify release build thanks to auto ref resolval
This commit is contained in:
@@ -91,17 +91,11 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Prepare Tag
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
id: tag_version
|
||||
run: echo ::set-output name=VERSION::$(echo ${GITHUB_REF:10})
|
||||
|
||||
- name: "Build Changelog"
|
||||
id: github_release
|
||||
uses: mikepenz/release-changelog-builder-action@main
|
||||
with:
|
||||
configuration: "configs/configuration_repo.json"
|
||||
toTag: ${{ steps.tag_version.outputs.VERSION }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
||||
@@ -199,16 +199,9 @@ on:
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Retrieve tag
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
id: tag_version
|
||||
run: echo ::set-output name=VERSION::$(echo ${GITHUB_REF:10})
|
||||
|
||||
- name: Build Changelog
|
||||
id: github_release
|
||||
uses: mikepenz/release-changelog-builder-action@main
|
||||
with:
|
||||
toTag: ${{ steps.tag_version.outputs.VERSION }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user