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