Skip to content

Commit

Permalink
Fix conditional for workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwellmattryan committed Nov 15, 2024
1 parent d07be95 commit 08465e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ jobs:
- name: Check Tag & Version
run: |
if [[ ! $PLUGIN_VERSION =~ $VERSION ]]; then
if [[ $PLUGIN_VERSION != *"$VERSION"* ]]; then
echo "The plugin version specified in this workflow and tag-derived version do not match. Exiting."
exit 1
fi
if [[ $PLUGIN_VERSION != "production" ]] && [[ ! $PLUGIN_VERSION =~ $STAGE ]]; then
if [[ $STAGE != "production" ]] && [[ $PLUGIN_VERSION != *"$STAGE"* ]]; then
echo "The plugin version stage specified in this workflow and tag-derived version stage do not match. Exiting."
exit 1
fi
Expand Down

0 comments on commit 08465e8

Please sign in to comment.