| # Generated by internal/ci/ci_tool.cue; do not edit |
| |
| name: Dispatch build branch |
| defaults: |
| run: |
| shell: bash |
| on: |
| - repository_dispatch |
| jobs: |
| create_build_branch: |
| runs-on: ubuntu-latest |
| steps: |
| - name: Checkout code |
| uses: actions/checkout@v2 |
| - name: Checkout ref |
| run: |- |
| git fetch https://cue-review.googlesource.com/cue ${{ github.event.client_payload.ref }} |
| git checkout FETCH_HEAD |
| - name: Create build branch |
| run: |- |
| ref=$(echo ${{ github.event.client_payload.ref }} | sed -e 's/\//_/g') |
| branch="$(date -u +%Y%m%d%H%M%S)-${{ github.event.client_payload.changeID }}-${{ github.event.client_payload.commit }}-$ref" |
| git checkout -b $branch |
| git push origin $branch |