Build job (#763)

* updating workflow to check if [ci commit] is in the message and if it is we wont run the jobs below

* moved the statment into the rest of the code
This commit is contained in:
kevkevin 2023-09-08 11:39:20 -05:00 committed by GitHub
parent 5ecbd66c19
commit ce6e4758e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,15 +10,6 @@ jobs:
runs-on:
- ubuntu-latest
steps:
- name: Check Commit Message
id: commit-message-check
run: |
COMMIT_MESSAGE=$(git log --format=%B -n 1 ${{ github.sha }})
if [[ $COMMIT_MESSAGE == *"[ci commit]"* ]]; then
echo "Commit message contains [ci commit], exiting workflow."
exit 0
fi
shell: bash
- name: checkout
uses: actions/checkout@v3
with:
@ -28,6 +19,11 @@ jobs:
run: npm i
- name: lint, format, build and push automatic fixes
run: |
COMMIT_MESSAGE=$(git log --format=%B -n 1 ${{ github.sha }})
if [[ $COMMIT_MESSAGE == *"[ci commit]"* ]]; then
echo "Commit message contains [ci commit], exiting workflow."
exit 0
fi
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
shopt -s globstar