Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei-Aksionov committed Nov 22, 2023
1 parent 866b077 commit ac85a8a
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/code_style_fix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ name: Automatic Code Style Fix
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
# 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:
Expand Down Expand Up @@ -59,6 +59,7 @@ 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: ${{ secrets.github-token || github.token }}
github_token: ${{ secrets.github-token }}
message: "pre-commit: running and fixing..."
branch: ${{ github.head_ref || github.ref_name }}

0 comments on commit ac85a8a

Please sign in to comment.