Skip to content

Commit

Permalink
ci/precommit: checkout with token (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda authored Nov 16, 2023
1 parent 29a3f72 commit 03b6b75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/check-precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
with:
fetch-depth: 0
submodules: recursive
token: ${{ secrets.github-token || github.token }}

- name: Set up Python 🐍
uses: actions/setup-python@v4
Expand All @@ -59,6 +60,6 @@ jobs:
if: always() && inputs.push-fixes == true && steps.precommit.outcome == 'failure'
uses: actions-js/[email protected]
with:
github_token: ${{ secrets.github-token }}
github_token: ${{ secrets.github-token || github.token }}
message: "pre-commit: running and fixing..."
branch: ${{ github.ref_name }}
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- CI: split code checks & enable pre-commit updates (
[#191](https://github.com/Lightning-AI/utilities/pull/191),
[#193](https://github.com/Lightning-AI/utilities/pull/193)
[#193](https://github.com/Lightning-AI/utilities/pull/193),
[#194](https://github.com/Lightning-AI/utilities/pull/194)
)


Expand Down

0 comments on commit 03b6b75

Please sign in to comment.