Skip to content

Commit

Permalink
Merge pull request #2 from chandru-iamneo/patch-2
Browse files Browse the repository at this point in the history
Update build.yml
  • Loading branch information
logesh-jarvis authored Feb 22, 2024
2 parents 5a8dad6 + 156d0d2 commit d26a77d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ jobs:
java-version: 17
- name: Move Pom.xml to Root
run: mv .github/workflows/pom.xml ./pom.xml

- name: Check Commit Message
run: |
if [[ "$(git log --format=%B -n 1)" == *"Submit-project-save-commit"* ]]; then
echo "Commit message contains 'Submit-project-save-commit', proceeding with the workflow."
else
echo "Commit message does not contain 'Submit-project-save-commit', skipping the workflow."
exit 78 # Exiting with a non-zero code to indicate skipping
fi
- name: Build and analyze
env:
GITHUB_TOKEN: badabeeddcc309774475bedbafbeeacbbathree
Expand Down

0 comments on commit d26a77d

Please sign in to comment.