Update tasks.yaml

This commit is contained in:
Minoplhy 2021-10-03 09:58:39 +07:00 committed by GitHub
parent d9dce21f44
commit 4c6f8a5100
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,3 +28,17 @@ jobs:
BRANCH_VERSION: "main"
sub_action_location: "sub-action.py"
sub_action_Repo: "minoplhy/filters"
restart_when_failed:
name: Restarts the scheduled run when it failed
runs-on: ubuntu-latest
if: github.event_name == 'schedule' && failure()
needs: [build]
steps:
- name: Retry the workflow
run: |
curl -i \
-X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.API_TOKEN_GITHUB }}" \
https://api.github.com/repos/minoplhy/filters/actions/workflows/11794283/dispatches \
-d '{"ref": "${{ github.ref }}" }'