-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2fb1a5
commit 580987c
Showing
1 changed file
with
7 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
name: Automatic Code Style Fix | ||
|
||
permissions: write-all | ||
|
||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
workflow_call: | ||
secrets: | ||
github-token: | ||
description: "if provided an user GH's token, it will push update; requires `push` event" | ||
required: false | ||
inputs: | ||
push-fixes: | ||
description: "if provided an user GH's token, it will push update; requires `push` event" | ||
type: boolean | ||
required: false | ||
default: false | ||
|
||
jobs: | ||
auto_code_style_fix: | ||
|
@@ -56,10 +57,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 }} | ||
# github_token: ${{ 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 }} | ||
# github_token: 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 | ||
# github_token: ${{ secrets.ruff_black_pat }} | ||
github_token: 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 | ||
github_token: ${{ secrets.github-token || github.token }} | ||
message: "pre-commit: running and fixing..." | ||
branch: ${{ github.head_ref || github.ref_name }} |