# Code generated internal/ci/base/write.cue; DO NOT EDIT.

name: Triggers on push to tip
"on":
  push:
    branches:
      - master
      - ci/test
jobs:
  push:
    defaults:
      run:
        shell: bash --noprofile --norc -euo pipefail {0}
    permissions:
      contents: read
    runs-on: namespace-profile-linux-amd64;overrides.cache-tag=cue-dispatch-workflow
    if: ${{github.repository == 'cue-lang/cue'}}
    steps:
      - name: Trigger unity build
        run: 'curl -s -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.PORCUEPINE_GITHUB_PAT }}" -H "X-GitHub-Api-Version: 2022-11-28" --fail --request POST --data-binary "{\"event_type\":\"Check against ${GITHUB_SHA}\",\"client_payload\":{\"type\":\"unity\",\"payload\":{\"versions\":\"\\\"commit:${GITHUB_SHA}\\\"\"}}}" https://api.github.com/repos/cue-unity/unity-private/dispatches'
      - name: Trigger cuelang.org tipdeploy
        run: 'curl -s -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.CUECKOO_GITHUB_PAT }}" -H "X-GitHub-Api-Version: 2022-11-28" --fail --request POST --data-binary "{\"ref\":\"master\"}" https://api.github.com/repos/cue-lang/cuelang.org/actions/workflows/tipdeploy.yaml/dispatches'
