diff --git a/.github/workflows/ci-build-checks.yaml b/.github/workflows/ci-build-checks.yaml index f69770ade..7a37e91ff 100644 --- a/.github/workflows/ci-build-checks.yaml +++ b/.github/workflows/ci-build-checks.yaml @@ -121,14 +121,15 @@ jobs: id: files env: GH_TOKEN: ${{github.token}} + GH_REPO: ${{github.repository}} # Note that this approach doesn't need to check out a copy of the repo. run: | set -x +e # shellcheck disable=SC2207 # Get an array of paths changed in this workflow trigger event. if [[ "${{github.event_name}}" == "pull_request" ]]; then - url=${{github.event.pull_request.url}} - paths=($(gh pr view $url --json files --jq '.files | .[].path')) + pr=${{github.event.pull_request.number}} + paths=($(gh pr view $pr --json files --jq '.files | .[].path')) else # There's no event sha for manual runs, so we rely on user input. # Make sure the sha is valid. @@ -233,6 +234,7 @@ jobs: continue-on-error: true env: GH_TOKEN: ${{secrets.GITHUB_TOKEN}} + GH_REPO: ${{github.repository}} run: | key="${{steps.parameters.outputs.python_cache_key}}" gh extension install actions/gh-actions-cache diff --git a/.github/workflows/ci-file-checks.yaml b/.github/workflows/ci-file-checks.yaml index afac8f30b..791b4c34e 100644 --- a/.github/workflows/ci-file-checks.yaml +++ b/.github/workflows/ci-file-checks.yaml @@ -87,6 +87,7 @@ jobs: name: Use the user-provided SHA as the basis for comparison env: GH_TOKEN: ${{github.token}} + GH_REPO: ${{github.repository}} run: | set -x +e url="repos/${{github.repository}}/commits/${{inputs.sha}}" @@ -181,6 +182,7 @@ jobs: continue-on-error: true env: GH_TOKEN: ${{secrets.GITHUB_TOKEN}} + GH_REPO: ${{github.repository}} run: | key="${{steps.parameters.outputs.cache_key}}" gh extension install actions/gh-actions-cache

AltStyle によって変換されたページ (->オリジナル) /