From ce6e4758e70d95e7f464948fa6ed1a7cf2435bf5 Mon Sep 17 00:00:00 2001 From: kevkevin Date: Fri, 8 Sep 2023 11:39:20 -0500 Subject: [PATCH] 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 --- .github/workflows/lint_format_and_build.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lint_format_and_build.yml b/.github/workflows/lint_format_and_build.yml index 049f1cb90..0e16d5e90 100644 --- a/.github/workflows/lint_format_and_build.yml +++ b/.github/workflows/lint_format_and_build.yml @@ -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