This action install scaleway-cli and allows you to run commands as well as install and export your config.
save_config: save your config to scaleway's config file, useful to use it with other tools like terraform or SDKsexport_config: export your config to the environment to use the same action in the next steps
Checkout CLI's config documentation
- name: Use CLI
uses: scaleway/action-scw@v0
with:
save-config: true
export-config: true
version: v2.24.0
access-key: ${{ secrets.SCW_ACCESS_KEY }}
secret-key: ${{ secrets.SCW_SECRET_KEY }}
default-project-id: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
default-organization-id: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}args: when arguments are given, a command will be executed and the json output will be in thejsonoutput
- name: Use CLI
uses: scaleway/action-scw@v0
id: cli
with:
args: instance server get ${{ env.SERVER_ID }}
- run: echo ${{ steps.cli.outputs.json }}repo-token: default to the workflow token (i.e.GITHUB_TOKEN), needed to check the latest version of the tool availableversion: default to latest, must be exact version. Fetched from exported config if availableaccess-keysecret-keydefault-project-iddefault-organization-id