Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/radj307/ARRCON
Browse files Browse the repository at this point in the history
  • Loading branch information
radj307 committed Feb 3, 2022
2 parents 007b2df + 9c3b883 commit 4c5f729
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/GenerateRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,12 @@ jobs:
uses: actions/download-artifact@v2

# Retrieve the latest git tag if this was triggered by a tag
- name: '(Automatic) Get Release Tag'
- name: 'Get Release Tag'
id: get_version
if: ${{ github.event_name != 'workflow_dispatch' }}
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
run: |
if [ "${{github.event.inputs.tag}}" == "" ]; then TAG="${GITHUB_REF/refs\/tags\//}"; else TAG="${{github.event.inputs.tag}}" ; fi
echo ::set-output name=VERSION::$TAG
echo ::set-output name=NAME::"Release $TAG"
# Stage downloaded build artifacts for deployment
- name: 'Stage Archives'
Expand Down Expand Up @@ -150,8 +152,8 @@ jobs:
with:
draft: ${{ github.event.inputs.is-draft || true }}
prerelease: ${{ github.event.inputs.is-prerelease || false }}
tag_name: ${{ github.event.inputs.tag || steps.get_version.outputs.VERSION }}
name: 'Release ${{ github.event.inputs.name || steps.get_version.outputs.VERSION }}'
tag_name: ${{ steps.get_version.outputs.VERSION }}
name: ${{ steps.get_version.outputs.NAME }}
generate_release_notes: ${{ github.event.inputs.autogenerate || true }}
body: ${{ github.event.inputs.body || '' }}
fail_on_unmatched_files: true
Expand Down

0 comments on commit 4c5f729

Please sign in to comment.