diff --git a/.github/workflows/scaleway-down.yml b/.github/workflows/scaleway-down.yml index b845a672..f10275a2 100644 --- a/.github/workflows/scaleway-down.yml +++ b/.github/workflows/scaleway-down.yml @@ -7,7 +7,7 @@ on: - cron: '00 00 * * *' jobs: - build: + down: runs-on: ubuntu-latest steps: - name: Use CLI @@ -25,9 +25,7 @@ jobs: - name: Get container ID run: | - CONTAINER_ID=$(scw container list name=${{ secrets.CONTAINER_NAME }} | awk 'NR==2{print $1}') - echo "::set-output name=container_id::$CONTAINER_ID" - + 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 6f1bdf3f..61132c39 100644 --- a/.github/workflows/scaleway-up.yml +++ b/.github/workflows/scaleway-up.yml @@ -7,7 +7,7 @@ on: - cron: '00 07 * * *' jobs: - build: + up: runs-on: ubuntu-latest steps: - name: Use CLI @@ -25,8 +25,7 @@ jobs: - name: Get container ID run: | - CONTAINER_ID=$(scw container list name=${{ secrets.CONTAINER_NAME }} | awk 'NR==2{print $1}') - echo "::set-output name=container_id::$CONTAINER_ID" + echo "CONTAINER_ID=$(scw container list name=${{ secrets.CONTAINER_NAME }} | awk 'NR==2{print $1}')" >> $GITHUB_ENV - name: start 1 instance uses: jawher/action-scw@v2.24.0