Skip to content

Commit

Permalink
fix: get id
Browse files Browse the repository at this point in the history
  • Loading branch information
polomarcus committed Nov 28, 2023
1 parent d7b7976 commit 1eb63e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/scaleway-down.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- cron: '00 00 * * *'

jobs:
build:
down:
runs-on: ubuntu-latest
steps:
- name: Use CLI
Expand All @@ -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/[email protected]
env:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/scaleway-up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- cron: '00 07 * * *'

jobs:
build:
up:
runs-on: ubuntu-latest
steps:
- name: Use CLI
Expand All @@ -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/[email protected]
Expand Down

0 comments on commit 1eb63e9

Please sign in to comment.