Skip to content

Branch Creation Alert #8

Branch Creation Alert

Branch Creation Alert #8

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, 'refs/heads/uat') }}
steps:
- name: Send Alert
run: |
curl --request POST \
--url ${{ secrets.UAT_BRANCH_CREATION_WEBHOOK_URL }} \
--data '{
"app_name": "Caseflow",
"branch_name" : "${{ github.ref_name }}",
"branch_url": "https://github.com/department-of-veterans-affairs/caseflow/tree/${{ github.ref_name }}"
}'