Skip to content

Commit

Permalink
bump CLI version and enable merge_group in the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone committed Apr 9, 2024
1 parent 550e421 commit 97cb477
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 14 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
uses: ./
with:
args: instance server-type list
version: v2.24.0
version: v2.29.0
access-key: ${{ secrets.SCW_ACCESS_KEY }}
secret-key: ${{ secrets.SCW_SECRET_KEY }}
default-project-id: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
uses: ./
with:
export-config: true
version: v2.24.0
version: v2.29.0
access-key: ${{ secrets.SCW_ACCESS_KEY }}
secret-key: ${{ secrets.SCW_SECRET_KEY }}
default-project-id: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
Expand All @@ -97,7 +97,7 @@ jobs:
uses: ./
with:
export-config: true
version: v2.24.0
version: v2.29.0
access-key: ${{ secrets.SCW_ACCESS_KEY }}
secret-key: ${{ secrets.SCW_SECRET_KEY }}
default-project-id: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
Expand All @@ -111,7 +111,7 @@ jobs:
uses: ./
with:
save-config: true
version: v2.24.0
version: v2.29.0
access-key: ${{ secrets.SCW_ACCESS_KEY }}
secret-key: ${{ secrets.SCW_SECRET_KEY }}
default-project-id: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
Expand All @@ -125,15 +125,15 @@ jobs:
- name: Check CLI config
uses: ./
with:
version: v2.24.0
version: v2.29.0
args: config info
env:
RUNNER_DEBUG: true
- name: Use CLI with saved config
uses: ./
id: cli
with:
version: v2.24.0
version: v2.29.0
args: instance server-type list
- name: Check output
run: |
Expand All @@ -142,7 +142,7 @@ jobs:
uses: ./
with:
save-config: true
version: v2.24.0
version: v2.29.0
access-key: ${{ secrets.SCW_ACCESS_KEY }}
secret-key: ${{ secrets.SCW_SECRET_KEY }}
default-project-id: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
Expand Down
7 changes: 5 additions & 2 deletions examples/args.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Use CLI

on: [push, pull_request]
on:
push:
pull_request:
merge_group:

jobs:
example_job:
Expand All @@ -10,7 +13,7 @@ jobs:
id: cli
uses: scaleway/action-scw@v0
with:
version: v2.14.0
version: v2.29.0
args: instance server start ${{ env.SERVER_ID }}
access_key: ${{ secrets.SCW_ACCESS_KEY }}
secret_key: ${{ secrets.SCW_SECRET_KEY }}
Expand Down
9 changes: 6 additions & 3 deletions examples/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Install cli and create config

on: [push, pull_request]
on:
push:
pull_request:
merge_group:

jobs:
example_job:
Expand All @@ -9,7 +12,7 @@ jobs:
- name: Install CLI and create config file
uses: scaleway/action-scw@v0
with:
version: v2.14.0
version: v2.29.0
access_key: ${{ secrets.SCW_ACCESS_KEY }}
secret_key: ${{ secrets.SCW_SECRET_KEY }}
default_project_id: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
Expand All @@ -20,5 +23,5 @@ jobs:

- uses: scaleway/action-scw@v0
with:
version: v2.14.0
version: v2.29.0
args: instance server list
7 changes: 5 additions & 2 deletions examples/install.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Install and use CLI

on: [push, pull_request]
on:
push:
pull_request:
merge_group:

jobs:
example_job:
Expand All @@ -9,7 +12,7 @@ jobs:
- name: Install CLI
uses: scaleway/action-scw@v0
with:
version: v2.14.0
version: v2.29.0
- run: scw instance server start --wait ${{ env.SERVER_ID }}
env:
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
Expand Down

0 comments on commit 97cb477

Please sign in to comment.