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
|
||||
shell: bash
|
||||
run: |
|
||||
git fetch --all
|
||||
message=$(git log --format=%B -n 1 origin/${{ github.head_ref }})
|
||||
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
|
||||
if [ "${{ github.event_name }}" == "schedule" ]; then
|
||||
echo -e "\033[32mSchedule event\033[0m"
|
||||
exit 0
|
||||
else
|
||||
git fetch --all
|
||||
message=$(git log --format=%B -n 1 origin/${{ github.head_ref }})
|
||||
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
|
||||
|
||||
- name: Get PR number
|
||||
|
Reference in New Issue
Block a user