From ff2018b6d3a8d4b1bd9a7a2c18d27a6ad1547407 Mon Sep 17 00:00:00 2001 From: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com> Date: Fri, 12 Jul 2024 09:33:26 -0700 Subject: [PATCH] . --- README.md | 1 - action.yml | 10 ++-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 92dc3f1..6c80363 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/action.yml b/action.yml index 268c861..3dc0cff 100644 --- a/action.yml +++ b/action.yml @@ -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 @@ -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 @@ -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')