mirror of
https://github.com/stakwork/sphinx-relay.git
synced 2026-08-13 12:33:24 +02:00
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:
parent
5ecbd66c19
commit
ce6e4758e7
1 changed files with 5 additions and 9 deletions
14
.github/workflows/lint_format_and_build.yml
vendored
14
.github/workflows/lint_format_and_build.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue