Skip to content

Weekly test featurenets create (short session, branch) #34

Weekly test featurenets create (short session, branch)

Weekly test featurenets create (short session, branch) #34

---
name: Weekly test featurenets create (short session, branch)
on:
# At 03:00 on Wednesday
schedule:
- cron: '0 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-via-branch:
needs: [check-vars-and-secrets]
name: Create featurenet from main branch
uses: ./.github/workflows/featurenet-create.yml
secrets: inherit
with:
featurenet-name: 'ops-test-main-branch'
ref: 'main'
expiration: '4h'
validators: '7'
internal: true
short-session: true
delete-featurenet:
if: ${{ always() }}
needs: [create-featurenet-via-branch]
name: Delete featurenet
uses: ./.github/workflows/featurenet-delete.yml
secrets: inherit
with:
featurenet-name: 'ops-test-main-branch'
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 }}