From 68a7367964da0b1dbf5cf17249d4875310dd0c51 Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Thu, 26 Oct 2023 11:25:51 -0400 Subject: [PATCH] ci: Mirror handbook's lint workflow --- .github/workflows/lint.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 50a8db62..2bd7df41 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,10 +6,12 @@ jobs: build: if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository runs-on: ubuntu-latest + env: + PAT: ${{ secrets.PAT }} steps: - uses: actions/checkout@v4 with: - token: ${{ secrets.PAT }} + token: ${{ secrets.PAT || github.token }} - uses: actions/setup-python@v4 with: python-version: '3.11' @@ -21,7 +23,8 @@ jobs: continue-on-error: true with: extra_args: pip-compile --files ${{ steps.changed-files.outputs.all_changed_files }} - - uses: stefanzweifel/git-auto-commit-action@v5 + - if: ${{ env.PAT }} + uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: '[github-actions] pre-commit autoupdate' - shell: bash