-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (40 loc) · 1.14 KB
/
tasks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Tasks
on:
schedule:
- cron: '0 */8 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: filters-build
uses: minoplhy/filters-build_actions@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
- name: build
uses: minoplhy/filters-maker@v1.1.0
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
Destination_UNAME: "minoplhy"
Destination_REPO: "filters"
Destination_VERSION: "ucate"
ACTION_FILE: "action.py"
GIT_NAME: "HurBar"
GIT_EMAIL: "hubr@3qx.nl"
REPO_BRANCH: "main"
sub_action_location: "sub-action.py"
restart_when_failed:
name: Dispatches run when it failed
runs-on: ubuntu-latest
if: failure()
needs: [build]
steps:
- name: Re-Run 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 }}" }'