Weekly test featurenets create (short session, full sha) #53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 }} |