Skip to content

Commit 541b73d

Browse files
committed
Run push pipeline only in master branch
1 parent 891888d commit 541b73d

File tree

1 file changed

+31
-30
lines changed

1 file changed

+31
-30
lines changed

.github/workflows/Linting.yml

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,36 @@
1-
---
2-
name: Linting
1+
name: Linting
32

4-
on: # yamllint disable-line rule:truthy
5-
push: null
6-
pull_request: null
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
pull_request:
78

8-
permissions: {}
9+
permissions: {}
910

10-
jobs:
11-
Super_Linter:
12-
name: Super Linter
13-
runs-on: ubuntu-latest
11+
jobs:
12+
Super_Linter:
13+
name: Super Linter
14+
runs-on: ubuntu-latest
1415

15-
permissions:
16-
contents: read
17-
packages: read
18-
# To report GitHub Actions status checks
19-
statuses: write
16+
permissions:
17+
contents: read
18+
packages: read
19+
# To report GitHub Actions status checks
20+
statuses: write
2021

21-
steps:
22-
- name: Checkout code
23-
uses: actions/checkout@v4
24-
with:
25-
fetch-depth: 0
26-
- name: Super-linter
27-
uses: super-linter/super-linter@v7.2.0 # x-release-please-version
28-
env:
29-
# Linters
30-
VALIDATE_MARKDOWN: true
31-
VALIDATE_YAML: true
32-
LINTER_RULES_PATH: ./
33-
MARKDOWN_CONFIG_FILE: .markdownlint.yml
34-
ENABLE_GITHUB_ACTIONS_STEP_SUMMARY: true
35-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0
27+
- name: Super-linter
28+
uses: super-linter/super-linter@v7.2.0 # x-release-please-version
29+
env:
30+
# Linters
31+
VALIDATE_MARKDOWN: true
32+
VALIDATE_YAML: true
33+
LINTER_RULES_PATH: ./
34+
MARKDOWN_CONFIG_FILE: .markdownlint.yml
35+
ENABLE_GITHUB_ACTIONS_STEP_SUMMARY: true
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)