@@ -11,13 +11,13 @@ jobs:
1111 defaults :
1212 run :
1313 shell : bash --noprofile --norc -euo pipefail {0}
14- runs-on : ns- linux-amd64
14+ runs-on : namespace-profile- linux-amd64;overrides.cache-tag=cue-dispatch-workflow
1515 if : ${{ ((github.ref == 'refs/heads/ci/test') && false) || github.event.client_payload.type == 'trybot' }}
1616 steps :
1717 - name : Write netrc file for porcuepine Gerrithub
1818 run : |-
1919 cat <<EOD > ~/.netrc
20- machine review .gerrithub.io
20+ machine cue .gerrithub.io
2121 login porcuepine
2222 password ${{ secrets.PORCUEPINE_GERRITHUB_PASSWORD }}
2323 EOD
4040 git config user.name porcuepine
4141 git config user.email [email protected] 4242 git config http.https://github.com/.extraheader "AUTHORIZATION: basic $(echo -n porcuepine:${{ secrets.PORCUEPINE_GITHUB_PAT }} | base64)"
43- git remote add origin https://review .gerrithub.io/a/cue-labs/oci
43+ git remote add origin https://cue .gerrithub.io/a/cue-labs/oci
4444
4545 git fetch origin ${{ fromJSON(steps.payload.outputs.value).ref }}
4646 git checkout -b local_${{ fromJSON(steps.payload.outputs.value).targetBranch }} FETCH_HEAD
6565 ${{ toJSON(fromJSON(steps.payload.outputs.value)) }}
6666 EOD
6767 )"
68- git log -1 --format=%B | git interpret-trailers --trailer "Dispatch-Trailer: $trailer" | git commit --amend -F -
68+ # --no-divider prevents a "---" line from marking the end of the commit message.
69+ # Here, we know that the input is exactly one commit message,
70+ # so don't do weird things if the commit message has a "---" line.
71+ git log -1 --format=%B | git interpret-trailers --no-divider --trailer "Dispatch-Trailer: $trailer" | git commit --amend -F -
6972 git log -1
7073
7174 success=false
9093 git config user.name porcuepine
9194 git config user.email [email protected] 9295 git config http.https://github.com/.extraheader "AUTHORIZATION: basic $(echo -n porcuepine:${{ secrets.PORCUEPINE_GITHUB_PAT }} | base64)"
93- git remote add origin https://review .gerrithub.io/a/cue-labs/oci
96+ git remote add origin https://cue .gerrithub.io/a/cue-labs/oci
9497
9598 git fetch origin ${{ github.event.client_payload.ref }}
9699 git checkout -b local_${{ github.event.client_payload.targetBranch }} FETCH_HEAD
@@ -115,7 +118,10 @@ jobs:
115118 ${{ toJSON(github.event.client_payload) }}
116119 EOD
117120 )"
118- git log -1 --format=%B | git interpret-trailers --trailer "Dispatch-Trailer: $trailer" | git commit --amend -F -
121+ # --no-divider prevents a "---" line from marking the end of the commit message.
122+ # Here, we know that the input is exactly one commit message,
123+ # so don't do weird things if the commit message has a "---" line.
124+ git log -1 --format=%B | git interpret-trailers --no-divider --trailer "Dispatch-Trailer: $trailer" | git commit --amend -F -
119125 git log -1
120126
121127 success=false
0 commit comments