Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable support for node 16 #523

Closed
maduq1 opened this issue Mar 4, 2022 · 1 comment · Fixed by #524
Closed

Enable support for node 16 #523

maduq1 opened this issue Mar 4, 2022 · 1 comment · Fixed by #524
Labels
bug Something isn't working

Comments

@maduq1
Copy link

maduq1 commented Mar 4, 2022

TL;DR

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.

Expected behavior

No response

Observed behavior

No response

Action YAML

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/checkout@v2
        with:
          ref: ${{ github.event.inputs.version }}
      - name: Use Node.js 16
        uses: actions/setup-node@v2
        with:
          node-version: "16"
      - name: Install dependencies
        run: |
          npm ci
          cd db
          npm ci
          cd ..
      - name: Auth in GCloud
        uses: google-github-actions/auth@v0
        with:
          credentials_json: ${{ secrets[env.sa_key] }}
      - name: Set up Cloud SDK
        uses: google-github-actions/setup-gcloud@v0
        with:
          project_id: ${{ secrets[env.project_id] }}
      - name: Enable GCloud Beta commands
        run: gcloud components install beta --quiet

Log output

System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter ''using: node16' is not supported, use 'docker' or 'node12' instead.')

Additional information

No response

@maduq1 maduq1 added the bug Something isn't working label Mar 4, 2022
@maduq1
Copy link
Author

maduq1 commented Mar 4, 2022

I run into the same issue with another action: tool3/bump#17
Changing the requirement in action.yml seemed enough to fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging a pull request may close this issue.

1 participant