1+ name : u24_element_release_call
2+
3+ on :
4+ workflow_run :
5+ workflows : ["u24_element_tag_to_release"]
6+ types :
7+ - completed
8+
9+ anchor-dev-release-call : &dev-release-call
10+ uses : yambottle/djsciops-cicd/.github/workflows/u24_element_release.yaml@main
11+
12+ anchor-test-release-call : &test-release-call
13+ uses : yambottle/djsciops-cicd/.github/workflows/u24_element_release.yaml@main
14+
15+ anchor-prod-release-call : &prod-release-call
16+ uses : dj-sciops/djsciops-cicd/.github/workflows/u24_element_release.yaml@main
17+
18+ anchor-dev-release-if : &dev-release-if
19+ if : >-
20+ github.event.workflow_run.conclusion == 'success' &&
21+ github.repository_owner == 'yambottle' &&
22+ !contains(github.event.workflow_run.head_branch, 'test')
23+
24+ anchor-test-release-if : &test-release-if
25+ if : >-
26+ github.event.workflow_run.conclusion == 'success' &&
27+ github.repository_owner == 'yambottle' &&
28+ !contains(github.event.workflow_run.head_branch, 'test')
29+
30+ anchor-prod-release-if : &prod-release-if
31+ if : >-
32+ github.event.workflow_run.conclusion == 'success' &&
33+ github.repository_owner == 'datajoint' &&
34+ !contains(github.event.workflow_run.head_branch, 'test')
35+
36+ jobs :
37+ call_context_check :
38+ uses : dj-sciops/djsciops-cicd/.github/workflows/context_check.yaml@main
39+ test_call_u24_elements_release_alpine :
40+ if : >-
41+ github.event.workflow_run.conclusion == 'success' &&
42+ ( contains(github.event.workflow_run.head_branch, 'test') ||
43+ (github.event.workflow_run.event == 'pull_request'))
44+ !!merge <<: *$STAGE-release-call
45+ with :
46+ py_ver : 3.9
47+ twine_repo : testpypi
48+ secrets :
49+ TWINE_USERNAME : ${{secrets.TWINE_TEST_USERNAME}}
50+ TWINE_PASSWORD : ${{secrets.TWINE_TEST_PASSWORD}}
51+
52+ call_u24_elements_release_alpine :
53+ !!merge <<: *$STAGE-release-if
54+ !!merge <<: *$STAGE-release-call
55+ with :
56+ py_ver : 3.9
57+ secrets :
58+ TWINE_USERNAME : ${{secrets.TWINE_USERNAME}}
59+ TWINE_PASSWORD : ${{secrets.TWINE_PASSWORD}}
0 commit comments