Skip to content

Commit

Permalink
fix: CICD - exclude release candidates from upgrade handler checks (z…
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieMc0 authored May 16, 2023
1 parent fb58d28 commit 9ad3b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ jobs:
current_branch_name: "${{ steps.branch-name.outputs.current_branch }}"

- name: Check Upgrade Handler Name Matches Tag Name
if: startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release')
if: ( startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/release') ) && !endsWith(github.ref, '-rc')
run: |
UPGRADE_HANDLER_NAME=$(cat app/setup_handlers.go | grep "const releaseVersion" | cut -d ' ' -f4 | tr -d '"')
echo $UPGRADE_HANDLER_NAME
Expand Down

0 comments on commit 9ad3b15

Please sign in to comment.