Skip to content

Branch Creation Alert #10

Branch Creation Alert

Branch Creation Alert #10

name: Branch Creation Alert
on:
workflow_dispatch:
create:
jobs:
send_branch_alert:
name: Send Branch Creation Alert
runs-on: ubuntu-2-cores-latest
if: ${{ (github.event.ref_type == 'branch') && (contains(github.ref, fromJson('["refs/heads/uat", "refs/heads/release", "refs/heads/prodtest"]')) }}

Check failure on line 11 in .github/workflows/branch-creation-alert.yml

View workflow run for this annotation

GitHub Actions / Branch Creation Alert

Invalid workflow file

The workflow is not valid. .github/workflows/branch-creation-alert.yml (Line: 11, Col: 9): Unexpected end of expression: ')'. Located at position 137 within expression: (github.event.ref_type == 'branch') && (contains(github.ref, fromJson('["refs/heads/uat", "refs/heads/release", "refs/heads/prodtest"]'))
steps:
- name: Testing
run: echo ${{ github.ref }}