Skip to content

Commit

Permalink
Update cli-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dcolina authored Apr 12, 2024
1 parent b4f7e9f commit 6553847
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/cli-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ env:

jobs:
precheck:
if: ${{ ( github.event_name == 'release' && github.event.release.tag_name =~ '^v\d+\.\d+\.\d+$' ) || ( github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' ) }}
if: ${{ github.event_name == 'release' || github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
name: 'Pre-check'
runs-on: ubuntu-latest
outputs:
Expand All @@ -52,7 +52,8 @@ jobs:
echo "$GITHUB_CONTEXT"
if [[ "$GITHUB_EVENT_NAME" == 'release' ]]; then
RELEASE_VERSION=${{ github.event.release.tag_name }}
TAG_NAME=${{ github.event.release.tag_name }}
RELEASE_VERSION=${TAG_NAME:1}
else
RELEASE_VERSION=${{ inputs.version }}
fi
Expand Down

0 comments on commit 6553847

Please sign in to comment.