mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ci:force] (#8436)
This commit is contained in:
committed by
GitHub
parent
657db27790
commit
69b7bc852d
15
.github/workflows/pull-request.yml
vendored
15
.github/workflows/pull-request.yml
vendored
@@ -122,17 +122,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ "${{ github.event_name }}" == "schedule" ] || [ "${{ github.actor }}" == "dependabot[bot]" ]; then
|
if [ "${{ github.event_name }}" == "schedule" ] || [ "${{ github.actor }}" == "dependabot[bot]" ]; then
|
||||||
echo -e "\033[32mci:force check can be skipped\033[0m"
|
echo -e "\033[32mci:force check can be skipped\033[0m"
|
||||||
exit 0
|
skip_check="true"
|
||||||
else
|
elif [[ "$COMMIT_MESSAGE" == *"[ci:force]"* ]]; then
|
||||||
git fetch --all
|
echo -e "\033[32m[ci:force] flag detected. No need for approval.\033[0m"
|
||||||
message=$(git log --format=%B -n 1 origin/$BRANCH_NAME)
|
skip_check="true"
|
||||||
echo "COMMIT_MESSAGE=$message" >> $GITHUB_ENV
|
|
||||||
export COMMIT_MESSAGE=$message
|
|
||||||
if [[ "$COMMIT_MESSAGE" == *"[ci:force]"* ]]; then
|
|
||||||
echo "Forcing CI to run with commit flag [ci:force]."
|
|
||||||
echo CI_FORCE_RUN=true >> $GITHUB_ENV
|
|
||||||
echo "BREAK_ACTION=true" >> $GITHUB_ENV
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Get PR number
|
- name: Get PR number
|
||||||
|
Reference in New Issue
Block a user