chore: chore
This commit is contained in:
@@ -13,19 +13,18 @@ jobs:
|
|||||||
check:
|
check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
steps:
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/checkout@v4
|
- name: Get head commit
|
||||||
- name: Get head commit
|
run: |
|
||||||
run: |
|
export COMMIT_MESSAGE="$(git log --format=%B -n 1 HEAD | head -n 1)"
|
||||||
export COMMIT_MESSAGE=$(git log --format=%B -n 1 HEAD | head -n 1)
|
echo "CHECK: '${{ COMMIT_MESSAGE }}'"
|
||||||
echo "CHECK: '${{ COMMIT_MESSAGE }}'"
|
if [[ "${{ COMMIT_MESSAGE }}" == "#bot-message: *" ]]; then
|
||||||
if [[ "${{ COMMIT_MESSAGE }}" == "#bot-message: *" ]]; then
|
echo "FOUND: '#bot-message: '"
|
||||||
echo "FOUND: '#bot-message: '"
|
echo "BOT_MESSAGE=${BOT_MESSAGE}" >> "${GITHUB_ENV}"
|
||||||
echo "BOT_MESSAGE=${BOT_MESSAGE}" >> "${GITHUB_ENV}"
|
else
|
||||||
else
|
echo "NOT FOUND: '#bot-message: '"
|
||||||
echo "NOT FOUND: '#bot-message: '"
|
echo 'BOT_MESSAGE=' >> "${GITHUB_ENV}"
|
||||||
echo 'BOT_MESSAGE=' >> "${GITHUB_ENV}"
|
fi
|
||||||
fi
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ vars.BOT_MESSAGE == 'true' }}
|
if: ${{ vars.BOT_MESSAGE == 'true' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user