Skip to content

Commit

Permalink
ci: Update lint.yml workflow to use personal access token to commit p…
Browse files Browse the repository at this point in the history
…re-commit autofixes
  • Loading branch information
jpmckinney committed Oct 25, 2023
1 parent 379eec5 commit 464af38
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,25 @@ jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: pip
cache-dependency-path: '**/requirements*.txt'
- id: changed-files
uses: tj-actions/changed-files@v36
uses: tj-actions/changed-files@v39
- uses: pre-commit/action@v3.0.0
continue-on-error: true
with:
extra_args: pip-compile --files ${{ steps.changed-files.outputs.all_changed_files }}
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: '[github-actions] pre-commit autoupdate'
push_options: --force
- shell: bash
run: curl -s -S --retry 3 $BASEDIR/tests/install.sh | bash -
- shell: bash
Expand Down

0 comments on commit 464af38

Please sign in to comment.