Skip to content

new development/deployment/release process #10

new development/deployment/release process

new development/deployment/release process #10

Workflow file for this run

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: Check for Required Label
run: |
echo "A"
REQUIRED_LABEL="devnet-pass"
echo "B"
PR_LABELS=$(echo '${{ toJSON(github.event.pull_request.labels) }}' | tr -d '\n')
echo "C"
if echo "$PR_LABELS" | grep -q "\"name\":\"$REQUIRED_LABEL\""; then
echo "D1"
echo "Required label '$REQUIRED_LABEL' is present."
else:
echo "D2"
echo "Error: Required label '$REQUIRED_LABEL' is missing."
exit 1
testnet-pass:
name: testnet-pass
runs-on: ubuntu-latest
steps:
- name: Check for Required Label
run: |
REQUIRED_LABEL="testnet-pass"
PR_LABELS='${{ toJSON(github.event.pull_request.labels) }}'
if echo "$PR_LABELS" | grep -q "\"name\":\"$REQUIRED_LABEL\""; then
echo "Required label '$REQUIRED_LABEL' is present."
else:
echo "Error: Required label '$REQUIRED_LABEL' is missing."
exit 1