-
Notifications
You must be signed in to change notification settings - Fork 92
55 lines (49 loc) · 1.41 KB
/
weekly-featurenets-short-session-full-sha.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
44
45
46
47
48
49
50
51
52
53
54
55
---
name: Weekly test featurenets create (short session, full sha)
on:
# At 03:20 on Wednesday
schedule:
- cron: '20 3 * * 3'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
check-vars-and-secrets:
name: Check vars and secrets
uses: ./.github/workflows/_check-vars-and-secrets.yml
secrets: inherit
create-featurenet-from-full-sha:
needs: [check-vars-and-secrets]
name: Create featurenet from full SHA
uses: ./.github/workflows/featurenet-create.yml
secrets: inherit
with:
featurenet-name: 'ops-test-full-hash'
ref: '87ebe7c4856b4f3365ddba55b55089713a96631a'
expiration: '2h'
validators: '5'
internal: true
short-session: true
delete-featurenet:
if: ${{ always() }}
needs: [create-featurenet-from-full-sha]
name: Delete featurenet
uses: ./.github/workflows/featurenet-delete.yml
secrets: inherit
with:
featurenet-name: 'ops-test-full-hash'
slack:
name: Slack notification
runs-on: ubuntu-20.04
needs: [delete-featurenet]
if: >
!cancelled() &&
github.event_name != 'workflow_dispatch'
steps:
- name: Send Slack message
uses: Cardinal-Cryptography/github-actions/slack-notification@v7
with:
notify-on: "failure"
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_DEV_ONDUTY }}