new development/deployment/release process #12
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: Check Labels | |
on: | |
pull_request: | |
types: [opened, synchronize, labeled, unlabeled] | |
workflow_dispatch: | |
jobs: | |
devnet-pass: | |
name: devnet-pass | |
runs-on: ubuntu-latest | |
steps: | |
- name: Labels added | |
if: ${{ contains(fromJson('["devnet-pass"]'), github.event.label.name) == true }} | |
run: echo Pass | |
- name: Labels not added | |
if: ${{ contains(fromJson('["devnet-pass"]'), github.event.label.name) != true }} | |
run: exit 1 | |
testnet-pass: | |
name: testnet-pass | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check for Required Label | |
if: ${{ contains(fromJson('["testnet-pass"]'), github.event.label.name) != true }} | |
run: | | |
echo "Error: Required label 'testnet-pass' is missing." | |
exit 1 |