This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better tested offline this time. Unfortunately, for the reasons described in ccbfbd2, it's only possible to test this properly once it is merged to master. Change-Id: Iea289f46e4d4f6d6001edee36145984f0ea10f5f Reviewed-on: https://cue-review.googlesource.com/c/cue/+/8225 Reviewed-by: CUE cueckoo <[email protected]> Reviewed-by: Paul Jolly <[email protected]>
- Loading branch information
Showing
2 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,12 @@ jobs: | |
}}/review' | ||
- name: Checkout ref | ||
run: |- | ||
git config --global user.name cueckoo | ||
git config --global user.email [email protected] | ||
mkdir tmpgit | ||
cd tmpgit | ||
git init | ||
git config user.name cueckoo | ||
git config user.email [email protected] | ||
git config http.https://github.com/.extraheader "AUTHORIZATION: basic $(echo -n cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} | base64)" | ||
git fetch https://cue-review.googlesource.com/cue ${{ github.event.client_payload.ref }} | ||
git checkout -b ci/${{ github.event.client_payload.changeID }}/${{ github.event.client_payload.commit }} FETCH_HEAD | ||
git push origin ci/${{ github.event.client_payload.changeID }}/${{ github.event.client_payload.commit }} | ||
git push https://github.com/cuelang/cue ci/${{ github.event.client_payload.changeID }}/${{ github.event.client_payload.commit }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -156,12 +156,15 @@ test_dispatch: _#bashWorkflow & { | |
_#step & { | ||
name: "Checkout ref" | ||
run: """ | ||
git config --global user.name cueckoo | ||
git config --global user.email [email protected] | ||
mkdir tmpgit | ||
cd tmpgit | ||
git init | ||
git config user.name cueckoo | ||
git config user.email [email protected] | ||
git config http.https://github.com/.extraheader "AUTHORIZATION: basic $(echo -n cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} | base64)" | ||
git fetch https://cue-review.googlesource.com/cue ${{ github.event.client_payload.ref }} | ||
git checkout -b ci/${{ github.event.client_payload.changeID }}/${{ github.event.client_payload.commit }} FETCH_HEAD | ||
git push origin ci/${{ github.event.client_payload.changeID }}/${{ github.event.client_payload.commit }} | ||
git push https://github.com/cuelang/cue ci/${{ github.event.client_payload.changeID }}/${{ github.event.client_payload.commit }} | ||
""" | ||
}, | ||
] | ||
|