ci: fix dispatch again
Change-Id: I9f8c7b29f65755340c9c5d46a2f2419f22a9914b
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/6332
Reviewed-by: Paul Jolly <paul@myitcv.org.uk>
diff --git a/.github/workflows/test_dispatch.yml b/.github/workflows/test_dispatch.yml
index 5c8d41e..a1f3bb6 100644
--- a/.github/workflows/test_dispatch.yml
+++ b/.github/workflows/test_dispatch.yml
@@ -22,7 +22,7 @@
run: |-
git config user.email cueckoo@cuelang.org
git config user.name cueckoo
- git config http.https://github.com/.extraheader "AUTHORIZATION basic $(echo cueckoo:$CUECKOO_PAT | base64)"
+ git config http.https://github.com/.extraheader "AUTHORIZATION: basic $(echo -n cueckoo:$CUECKOO_PAT | base64)"
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
diff --git a/internal/ci/workflows.cue b/internal/ci/workflows.cue
index abeb392..437febe 100644
--- a/internal/ci/workflows.cue
+++ b/internal/ci/workflows.cue
@@ -236,7 +236,7 @@
run: #"""
git config user.email cueckoo@cuelang.org
git config user.name cueckoo
- git config http.https://github.com/.extraheader "AUTHORIZATION basic $(echo cueckoo:$CUECKOO_PAT | base64)"
+ git config http.https://github.com/.extraheader "AUTHORIZATION: basic $(echo -n cueckoo:$CUECKOO_PAT | base64)"
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