diff --git a/.github/workflows/scaleway-down.yml b/.github/workflows/scaleway-down.yml index f10275a24..b9d251937 100644 --- a/.github/workflows/scaleway-down.yml +++ b/.github/workflows/scaleway-down.yml @@ -20,12 +20,11 @@ jobs: secret-key: ${{ secrets.SCW_SECRET_KEY }} default-project-id: ${{ secrets.SCW_DEFAULT_PROJECT_ID }} default-organization-id: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }} - - name: Get instance id and expose it in CONTAINER_ID env var - run: echo ::set-env name=CONTAINER_ID::$(cat "${GITHUB_WORKSPACE}/scw.output" | jq -r '.id') - name: Get container ID run: | echo "CONTAINER_ID=$(scw container list name=${{ secrets.CONTAINER_NAME }} | awk 'NR==2{print $1}')" >> $GITHUB_ENV + - name: 0 instances uses: jawher/action-scw@v2.24.0 env: diff --git a/.github/workflows/scaleway-up.yml b/.github/workflows/scaleway-up.yml index 61132c396..a2ffa95e3 100644 --- a/.github/workflows/scaleway-up.yml +++ b/.github/workflows/scaleway-up.yml @@ -7,7 +7,7 @@ on: - cron: '00 07 * * *' jobs: - up: + build: runs-on: ubuntu-latest steps: - name: Use CLI @@ -20,14 +20,11 @@ jobs: secret-key: ${{ secrets.SCW_SECRET_KEY }} default-project-id: ${{ secrets.SCW_DEFAULT_PROJECT_ID }} default-organization-id: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }} - - name: Get instance id and expose it in CONTAINER_ID env var - run: echo ::set-env name=CONTAINER_ID::$(cat "${GITHUB_WORKSPACE}/scw.output" | jq -r '.id') - - name: Get container ID run: | echo "CONTAINER_ID=$(scw container list name=${{ secrets.CONTAINER_NAME }} | awk 'NR==2{print $1}')" >> $GITHUB_ENV - - name: start 1 instance + - name: start 1 instances uses: jawher/action-scw@v2.24.0 env: SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}