From b664e26c3df7012f2fa1965a0819b005632bd02c Mon Sep 17 00:00:00 2001 From: sheldonhull Date: Mon, 12 Aug 2024 19:01:38 -0500 Subject: [PATCH] Update `lint.yml` to fix environment variable mapping for `GH_TOKEN` * **Fix environment variable mapping:** - Remove `with` block and move `env` block directly under `run` for `check_labels` and `validate_changie_entry` steps - Ensure `GH_TOKEN` is correctly mapped in `env` for both steps --- .github/workflows/lint.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 31e8f28f..4dd09763 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -72,9 +72,8 @@ jobs: echo "dependencies=true" >> $GITHUB_OUTPUT fi done - with: - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Validate changie entry id: validate_changie_entry if: steps.check_changes_dir.outputs.changes_dir_exists == 'true' && steps.check_labels.outputs.no_changie_required == 'false' && steps.check_labels.outputs.dependencies == 'false' @@ -86,6 +85,5 @@ jobs: else echo "Changie entry found" fi - with: - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}