Skip to content

Commit

Permalink
Update lint.yml to fix environment variable mapping for GH_TOKEN
Browse files Browse the repository at this point in the history
* **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
  • Loading branch information
sheldonhull committed Aug 13, 2024
1 parent 32e4020 commit b664e26
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -86,6 +85,5 @@ jobs:
else
echo "Changie entry found"
fi
with:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b664e26

Please sign in to comment.