-
Notifications
You must be signed in to change notification settings - Fork 8
43 lines (41 loc) · 1.17 KB
/
generation-success.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
37
38
39
40
41
42
43
name: Generating with py3.8-12
run-name: Generates with py3.8-3.12
on:
workflow_run:
workflows: [Generating with py3.8-3.12]
types:
- completed
jobs:
check-generation:
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion != 'success'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download workflow artifact
uses: dawidd6/action-download-artifact@v3
with:
workflow: validate-tsl.yml
name: python_generation_failed
path: ${{ github.workspace }}/status
if_no_artifact_found: ignore
skip_unpack: true
- name: Fail on status existing
run: |
found_file=false
for file in ${{ github.workspace }}/status/python_generation_failed*; do
if [ -f $file ]; then
found_file=true
break
fi
done
if $found_file; then
echo "Generation failed"
exit 1
fi
everything-fine:
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
steps:
- name: Everything is fine
run: echo "Everything is fine"