Skip to content

Commit

Permalink
BC-5468 add TAG for running npm script based on trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
UzaeirKhan committed Nov 6, 2023
1 parent 33916d7 commit 825dd09
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,22 @@ jobs:
check_cypress_brb=$(grep -oE "staging|schulportal" <<< "${{ github.event.inputs.instance1 }}")
check_cypress_default=$(grep -oE "staging|schulportal" <<< "${{ github.event.inputs.instance2 }}")
check_cypress_nbc=$(grep -oE "staging|schulportal" <<< "${{ github.event.inputs.instance3 }}")
echo "TAG=tag:stable:ci" >> $GITHUB_OUTPUT
echo "$TAG"
elif [[ $workflow_name == *"automatic"* || $workflow_name == *"scheduled"* ]]; then
echo "This is an automatic or scheduled workflow"
# environment="dev"
check_cypress_brb=""
check_cypress_default=""
check_cypress_nbc=""
echo "TAG=tag:stable:ci" >> $GITHUB_OUTPUT
echo "$TAG"
else
echo "This is a remote workflow"
check_cypress_brb=$(grep -oE "staging|schulportal" <<< "${{ inputs.cypress_brb }}")
check_cypress_default=$(grep -oE "staging|schulportal" <<< "${{ inputs.cypress_default }}")
check_cypress_nbc=$(grep -oE "staging|schulportal" <<< "${{ inputs.cypress_nbc }}")
echo "TAG=tag:stable:pr:ci" >> $GITHUB_OUTPUT
echo "$TAG"
fi
if [[ ! -z "$check_cypress_brb" || ! -z "$check_cypress_default" || ! -z "$check_cypress_nbc" ]]; then
Expand Down

0 comments on commit 825dd09

Please sign in to comment.