Skip to content

Commit

Permalink
Build job (#763)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
kevkevinpal authored Sep 8, 2023
1 parent 5ecbd66 commit ce6e475
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/lint_format_and_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit ce6e475

Please sign in to comment.