From 77328098697f34ed381b1c499c82b9628d0a1e78 Mon Sep 17 00:00:00 2001 From: Paul Leclercq Date: Tue, 28 Nov 2023 11:36:51 +0100 Subject: [PATCH] wip: access --- .github/workflows/scaleway-down.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/scaleway-down.yml b/.github/workflows/scaleway-down.yml index 9cefb529..f2a3b4ad 100644 --- a/.github/workflows/scaleway-down.yml +++ b/.github/workflows/scaleway-down.yml @@ -17,10 +17,11 @@ jobs: SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }} SCW_ORGANIZATION_ID: ${{ secrets.SCW_ORGANIZATION_ID }} SCW_ZONE: ${{ secrets.SCW_ZONE }} - - name: Get container ID - run: | - echo "CONTAINER_ID=$(container container list name=${{ secrets.CONTAINER_NAME }} | awk 'NR==2{print $1}')" >> $GITHUB_ENV + with: + args: container container list name=${{ secrets.CONTAINER_NAME }} --output json + - name: Get CONTAINER_ID env var + run: echo CONTAINER_ID=$(cat "${GITHUB_WORKSPACE}/scw.output" | jq -r '.id') - name: 0 instances uses: jawher/action-scw@v2.24.0