-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 949 Bytes
/
Main_Workflow.yml
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
name: Main Workflow
on:
push:
branches: [ main ]
tags:
- v**
workflow_dispatch:
jobs:
Test:
uses: GingerNinja2962/FoondaMate_Graph_Project/.github/workflows/Tests.yml@main
Build:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
needs: Test
uses: GingerNinja2962/FoondaMate_Graph_Project/.github/workflows/Build.yml@main
Release:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
needs: Build
uses: GingerNinja2962/FoondaMate_Graph_Project/.github/workflows/Release.yml@main
Cleanup:
needs: Release
if: always()
runs-on: ubuntu-latest
steps:
- name: Repository Dispatch [Cleanup]
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.WEBHOOK_SECRET }}
event-type: Cleanup
client-payload: '{"event_type": "delete_all_artifacts", "parent_runid": "${{ github.run_id }}", "parent_repo": "${{ github.repository }}"}'