From c9624615562f7227d4f4273aa2d506806e694c64 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 17 Aug 2025 21:57:11 +0200 Subject: [PATCH] workflows/codeowners: move global env into jobs Preparation to split the whole file. --- .github/workflows/codeowners-v2.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/codeowners-v2.yml b/.github/workflows/codeowners-v2.yml index b8efcd549aea..e8786805397f 100644 --- a/.github/workflows/codeowners-v2.yml +++ b/.github/workflows/codeowners-v2.yml @@ -39,11 +39,6 @@ defaults: run: shell: bash -env: - OWNERS_FILE: ci/OWNERS - # Don't do anything on draft PRs - DRY_MODE: ${{ github.event.pull_request.draft && '1' || '' }} - jobs: # Check that code owners is valid check: @@ -91,7 +86,7 @@ jobs: - name: Validate codeowners if: steps.app-token.outputs.token env: - OWNERS_FILE: untrusted/${{ env.OWNERS_FILE }} + OWNERS_FILE: untrusted/ci/OWNERS GITHUB_ACCESS_TOKEN: ${{ steps.app-token.outputs.token }} REPOSITORY_PATH: untrusted OWNER_CHECKER_REPOSITORY: ${{ github.repository }} @@ -142,7 +137,9 @@ jobs: if: steps.app-token.outputs.token env: GH_TOKEN: ${{ steps.app-token.outputs.token }} - run: result/bin/request-code-owner-reviews.sh ${{ github.repository }} ${{ github.event.number }} "$OWNERS_FILE" + # Don't do anything on draft PRs + DRY_MODE: ${{ github.event.pull_request.draft && '1' || '' }} + run: result/bin/request-code-owner-reviews.sh ${{ github.repository }} ${{ github.event.number }} ci/OWNERS - name: Log current API rate limits if: steps.app-token.outputs.token