mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
[release/v7.4] Simplify PR Template (#25407)
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
This commit is contained in:
co-authored by
Travis Plunk
parent
b543ea699f
commit
4aebcdc493
@@ -30,11 +30,20 @@ jobs:
|
||||
# Full git history is needed to get a proper
|
||||
# list of changed files within `super-linter`
|
||||
fetch-depth: 0
|
||||
- name: Load super-linter configuration
|
||||
# Use grep inverse matching to exclude eventual comments in the .env file
|
||||
# because the GitHub Actions command to set environment variables doesn't
|
||||
# support comments.
|
||||
# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable
|
||||
run: grep -v '^#' tools/super-linter/config/super-linter.env >> "$GITHUB_ENV"
|
||||
- name: Lint Markdown
|
||||
uses: super-linter/super-linter@a8150b40c89574adb5f68bf9502b890a236a06b3 # v5.7.2
|
||||
env:
|
||||
VALIDATE_ALL_CODEBASE: false
|
||||
DEFAULT_BRANCH: master
|
||||
FILTER_REGEX_INCLUDE: .*\.md
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
VALIDATE_EDITORCONFIG: false
|
||||
- name: Super-Linter correction instructions
|
||||
if: failure()
|
||||
uses: actions/github-script@v7.0.1
|
||||
with:
|
||||
script: |
|
||||
const message = "Super-Linter found issues in the changed files. Please check the logs for details. You can run the linter locally using the command: `./tools/super-lister/super-lister.ps1`.";
|
||||
core.setFailed(message);
|
||||
|
||||
Reference in New Issue
Block a user