Skip to content

Commit

Permalink
add if conditional to validate step
Browse files Browse the repository at this point in the history
  • Loading branch information
momentmaker committed Aug 6, 2024
1 parent 800b5bf commit 253e74d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-publish-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2

- name: Validate GIT_REF
if: ${{ github.event.inputs.git_ref }}
run: |
if ! git rev-parse --verify "${{ env.GIT_REF }}" > /dev/null 2>&1; then
echo "Invalid GIT_REF: ${{ env.GIT_REF }}"
Expand Down

0 comments on commit 253e74d

Please sign in to comment.