mirror of
https://github.com/ivuorinen/actions.git
synced 2026-02-07 10:44:49 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5c5f1c3d54 | |||
|
|
8599e8913f |
@@ -55,7 +55,7 @@ repos:
|
|||||||
- id: yamllint
|
- id: yamllint
|
||||||
|
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.14.2
|
rev: v0.14.3
|
||||||
hooks:
|
hooks:
|
||||||
# Run the linter with auto-fix
|
# Run the linter with auto-fix
|
||||||
- id: ruff-check
|
- id: ruff-check
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ runs:
|
|||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
with:
|
with:
|
||||||
token: ${{ inputs.token || github.token }}
|
token: ${{ inputs.token || github.token }}
|
||||||
|
ref: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref_name }}
|
||||||
|
|
||||||
# If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to
|
# If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to
|
||||||
# improve performance
|
# improve performance
|
||||||
@@ -220,7 +221,7 @@ runs:
|
|||||||
contains(fromJSON('["refs/heads/main", "refs/heads/master"]'), github.ref)
|
contains(fromJSON('["refs/heads/main", "refs/heads/master"]'), github.ref)
|
||||||
}}
|
}}
|
||||||
|
|
||||||
GITHUB_TOKEN: ${{ steps.git-config.outputs.token || inputs.token }}
|
GITHUB_TOKEN: ${{ steps.git-config.outputs.token || inputs.token || github.token }}
|
||||||
|
|
||||||
# Apply linter fixes configuration
|
# Apply linter fixes configuration
|
||||||
#
|
#
|
||||||
@@ -300,7 +301,7 @@ runs:
|
|||||||
id: cpr
|
id: cpr
|
||||||
if: env.APPLY_FIXES_IF_PR == 'true'
|
if: env.APPLY_FIXES_IF_PR == 'true'
|
||||||
with:
|
with:
|
||||||
token: ${{ steps.git-config.outputs.token || inputs.token }}
|
token: ${{ steps.git-config.outputs.token || inputs.token || github.token }}
|
||||||
commit-message: '[MegaLinter] Apply linters automatic fixes'
|
commit-message: '[MegaLinter] Apply linters automatic fixes'
|
||||||
title: '[MegaLinter] Apply linters automatic fixes'
|
title: '[MegaLinter] Apply linters automatic fixes'
|
||||||
labels: bot
|
labels: bot
|
||||||
|
|||||||
Reference in New Issue
Block a user