From 3b527301447884387c2319cc36ea07531b41ba2d Mon Sep 17 00:00:00 2001 From: Jonathan Lopez Date: Fri, 20 Sep 2024 18:11:01 -0400 Subject: [PATCH] Updating request sandbox pipeline to set users key value to lowercase --- .github/workflows/request-sandbox.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/request-sandbox.yml b/.github/workflows/request-sandbox.yml index c3a12e71..9629c856 100644 --- a/.github/workflows/request-sandbox.yml +++ b/.github/workflows/request-sandbox.yml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v4 - name: Add user to sandbox list run: | - yq eval '. += [{"user": "${{github.event.sender.login}}", "email": "${{github.event.inputs.email}}"}]' system/sandboxes/sandbox-list.yaml -i + yq eval '. += [{"user": "'$(echo "${{ github.event.sender.login }}" | tr '[:upper:]' '[:lower:]')'", "email": "${{github.event.inputs.email}}"}]' sandbox-list.yaml -i - name: Create Pull Request uses: peter-evans/create-pull-request@v5 with: @@ -26,4 +26,4 @@ jobs: 1. Go to https://cedille.omni.siderolabs.io/cluster/cedille-cluster/overview, click "Download kubeconfig" and put that file as ~/.kube/config 2. Install vcluster on your computer: https://www.vcluster.com/docs/getting-started/setup 3. run `vcluster connect vcluster-sandbox -n ${{github.event.sender.login}}-vcluster-sandbox` - 4. Start using kubectl to play around! \ No newline at end of file + 4. Start using kubectl to play around!