AAE-23367 - Ability to manually run the cron job (#9839)

* Do not check approval for schedule

* Do not check approval for schedule or manual run

* Do not check approval for schedule or manual run

* Do not check approval for schedule or manual run
This commit is contained in:
Maurizio Vitale 2024-06-24 17:13:33 +01:00 committed by GitHub
parent c94d02d81c
commit 1efa73ad3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -138,7 +138,7 @@ jobs:
fi
- name: Get PR number
if: ${{ github.event_name != 'schedule' }}
if: ${{ github.event_name != 'schedule' && github.event_name != 'workflow_dispatch' }}
uses: kamatama41/get-pr-number-action@0bcaab5752c0b699149e74667c8ce2f764cbb7fa # v0.9.1
id: action
with:
@ -167,8 +167,7 @@ jobs:
echo -e "\033[32mCommit by ${{ github.actor }}. No need for approval.\033[0m"
skip_check="true"
fi
if [ "${{ github.event_name }}" == "schedule" ]; then
if [ "${{ github.event_name }}" == "schedule" ] || [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
echo -e "\033[32mSchedule event\033[0m"
skip_check="true"
fi