mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
AAE-12589 fix cron e2e schedule avoiding ci:force flag checker (#8358)
* AAE-12589 fix cron e2e schedule * AAE-12589 fix cron e2e schedule
This commit is contained in:
21
.github/workflows/pull-request.yml
vendored
21
.github/workflows/pull-request.yml
vendored
@@ -113,14 +113,19 @@ jobs:
|
|||||||
- name: ci:force flag parser
|
- name: ci:force flag parser
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
git fetch --all
|
if [ "${{ github.event_name }}" == "schedule" ]; then
|
||||||
message=$(git log --format=%B -n 1 origin/${{ github.head_ref }})
|
echo -e "\033[32mSchedule event\033[0m"
|
||||||
echo "COMMIT_MESSAGE=$message" >> $GITHUB_ENV
|
exit 0
|
||||||
export COMMIT_MESSAGE=$message
|
else
|
||||||
if [[ "$COMMIT_MESSAGE" == *"[ci:force]"* ]]; then
|
git fetch --all
|
||||||
echo "Forcing CI to run with commit flag [ci:force]."
|
message=$(git log --format=%B -n 1 origin/${{ github.head_ref }})
|
||||||
echo CI_FORCE_RUN=true >> $GITHUB_ENV
|
echo "COMMIT_MESSAGE=$message" >> $GITHUB_ENV
|
||||||
echo "BREAK_ACTION=true" >> $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