Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
DariuszPorowski committed Jul 12, 2024
1 parent e36a68f commit ff2018b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ Action returns some basic information. For more details, follow [📤 Outputs](#
| `pyflakes` | false | `bool` | `true` | Use `pyflakes` with `actionlint` (and install if it does not exist) |
| `cache` | false | `bool` | `true` | Use GitHub cache for caching binaries for the next runs. |
| `github-token` | false | `string` | `github.token` | GitHub Token for API authentication. |
| `github-api-url-public` | false | `string` | `github.api_url` | Public GitHub REST API URL to connect to for dependencies download. For example, `https://api.github.com`. Required if you are running in the GHES. |

## 📤 Outputs

Expand Down
10 changes: 2 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ inputs:
description: GitHub Token
required: false
default: ${{ github.token }}
github-api-url-public:
description: Public GitHub REST API URL for dependencies download
required: false
default: ${{ github.api_url }}
outputs:
version-semver:
description: SemVer version
Expand Down Expand Up @@ -96,8 +92,7 @@ runs:
uses: actions/github-script@v7
id: environment
with:
# github-token: ${{ inputs.github-token || inputs.token || env.GITHUB_TOKEN }}
base-url: ${{ inputs.github-api-url-public }}
github-token: ${{ inputs.github-token || inputs.token || env.GITHUB_TOKEN }}
script: |
// input envs
const { INPUT_TOOL_NAME, INPUT_TOOL_SEMVER, INPUT_REPO_OWNER, INPUT_REPO_NAME, RUNNER_TEMP } = process.env
Expand Down Expand Up @@ -217,8 +212,7 @@ runs:
uses: actions/github-script@v7
if: ${{ steps.tool-cache.outputs.cache-hit != 'true' }}
with:
# github-token: ${{ inputs.github-token || inputs.token || env.GITHUB_TOKEN }}
base-url: ${{ inputs.github-api-url-public }}
github-token: ${{ inputs.github-token || inputs.token || env.GITHUB_TOKEN }}
script: |
// dependencies
const tc = require('@actions/tool-cache')
Expand Down

0 comments on commit ff2018b

Please sign in to comment.