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:
Maurizio Cacace
2023-03-14 14:07:20 +01:00
committed by GitHub
parent ccbf76a75e
commit 78a7e5d1df

View File

@@ -113,6 +113,10 @@ jobs:
- name: ci:force flag parser - name: ci:force flag parser
shell: bash shell: bash
run: | run: |
if [ "${{ github.event_name }}" == "schedule" ]; then
echo -e "\033[32mSchedule event\033[0m"
exit 0
else
git fetch --all git fetch --all
message=$(git log --format=%B -n 1 origin/${{ github.head_ref }}) message=$(git log --format=%B -n 1 origin/${{ github.head_ref }})
echo "COMMIT_MESSAGE=$message" >> $GITHUB_ENV echo "COMMIT_MESSAGE=$message" >> $GITHUB_ENV
@@ -122,6 +126,7 @@ jobs:
echo CI_FORCE_RUN=true >> $GITHUB_ENV echo CI_FORCE_RUN=true >> $GITHUB_ENV
echo "BREAK_ACTION=true" >> $GITHUB_ENV echo "BREAK_ACTION=true" >> $GITHUB_ENV
fi fi
fi
- name: Get PR number - name: Get PR number
id: action id: action