Skip to content

Commit

Permalink
release action: ensure the input release tag is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Mar 17, 2024
1 parent 9e8d269 commit 054ff29
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,23 @@ jobs:
with:
target_subproject: ${{ github.event.inputs.target_subproject }}

# ensure the input release tag is valid
validate_release:
runs-on: ubuntu-latest
steps:
- name: Get github release information
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: cardinalby/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
tag: ${{ github.event.inputs.target_release_tag }}

build:
uses: ./.github/workflows/build.yml
secrets: inherit
needs:
- validate_release
with:
target_subproject: ${{ github.event.inputs.target_subproject }}
release: true
Expand Down

0 comments on commit 054ff29

Please sign in to comment.