Pass the token input through on GHES (#277)

This commit is contained in:
Dmitry Shibanov
2022-11-02 12:21:18 +01:00
committed by GitHub
parent c4a742cab1
commit 27b43e1b0d
4 changed files with 19 additions and 4 deletions

View File

@ -10,8 +10,8 @@ inputs:
description: 'Set this option to true if you want the action to always check for the latest available version that satisfies the version spec'
default: false
token:
description: Used to pull node distributions from go-versions. Since there's a default, this is typically not supplied by the user.
default: ${{ github.token }}
description: Used to pull node distributions from go-versions. Since there's a default, this is typically not supplied by the user. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting.
default: ${{ github.server_url == 'https://github.com' && github.token || '' }}
cache:
description: Used to specify whether caching is needed. Set to true, if you'd like to enable caching.
default: false