Skip to content

Commit

Permalink
fix: workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffreyaldebert committed Mar 25, 2024
1 parent 1fbc9b1 commit 2972a1f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/create-deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ jobs:
- name: Check commit message
id: check-commit
run: |
COMMIT_MESSAGE=$(git log --format=%B -n 1 ${{ github.event.after }})
if [[ "$COMMIT_MESSAGE" == *"[deploy:prod:meteo]"* || "$COMMIT_MESSAGE" == *"[deploy:prod:ecologie]"* || "$COMMIT_MESSAGE" == *"[deploy:demo:ecologie]"* || "$COMMIT_MESSAGE" == *"[deploy:prod:defis]"*]]; then
echo "::set-output name=should_run::true"
COMMIT_MESSAGE=$(git log --format=%B -n 1 ${{ github.event.after }})
if [[ "$COMMIT_MESSAGE" == *"[deploy:prod:meteo]"* || \
"$COMMIT_MESSAGE" == *"[deploy:prod:ecologie]"* || \
"$COMMIT_MESSAGE" == *"[deploy:demo:ecologie]"* || \
"$COMMIT_MESSAGE" == *"[deploy:prod:defis]"* ]]; then
echo "::set-output name=should_run::true"
else
echo "No relevant commit message found, not running further jobs."
echo "::set-output name=should_run::false"
echo "No relevant commit message found, not running further jobs."
echo "::set-output name=should_run::false"
fi
trigger-gitlab-pipeline:
needs: check-commit-message
Expand Down

0 comments on commit 2972a1f

Please sign in to comment.