The workflows on machines using node16 break when downloading the action with the following error:
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter ''using: node16' is not supported, use 'docker' or 'node12' instead.')
This is happening on a self-hosted runner, which have been recently updated to run node16 as node12 is getting EOL.
No response
No response
name: deploy
on:
workflow_dispatch:
inputs:
version:
description: "Branch or tag to deploy to the selected environment"
required: true
default: "master"
environment:
description: "Environment to deploy to (test|dev|prod)"
required: true
default: "dev"
jobs:
manual-deploy:
runs-on:
- self-hosted
- ${{ github.event.inputs.environment }}-environment
steps:
- name: Checkout repo
uses: actions/[email protected]
with:
ref: ${{ github.event.inputs.version }}
- name: Use Node.js 16
uses: actions/[email protected]
with:
node-version: "16"
- name: Install dependencies
run: |
npm ci
cd db
npm ci
cd ..
- name: Auth in GCloud
uses: google-github-actions/[email protected]
with:
credentials_json: ${{ secrets[env.sa_key] }}
- name: Set up Cloud SDK
uses: google-github-actions/[email protected]
with:
project_id: ${{ secrets[env.project_id] }}
- name: Enable GCloud Beta commands
run: gcloud components install beta --quiet
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter ''using: node16' is not supported, use 'docker' or 'node12' instead.')
No response
I run into the same issue with another action: tool3/bump#17
Changing the requirement in action.yml
seemed enough to fix the problem.
Owner Name | google-github-actions |
Repo Name | setup-gcloud |
Full Name | google-github-actions/setup-gcloud |
Language | TypeScript |
Created Date | 2019-11-05 |
Updated Date | 2023-03-23 |
Star Count | 1505 |
Watcher Count | 65 |
Fork Count | 548 |
Issue Count | 11 |
Issue Title | Created Date | Updated Date |
---|