Skip to content

Commit f99f6d7

Browse files
authored
ci: update linter to run on pull requests to main and staging (#456)
The required linters are not running on pull requests from forked repositories. This fix is intended to trigger the linters on any pull request going to the main or staging branch. --------- Signed-off-by: chjmil <[email protected]>
1 parent 918daa7 commit f99f6d7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/linter-analysis.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Linter Analysis
22
on:
3-
push:
4-
branches: ['**'] # '*' will cause the workflow to run on all commits to all branches.
3+
pull_request:
4+
branches:
5+
- main
6+
- staging
57

68
jobs:
79
# Hadolint: Job-1

0 commit comments

Comments
 (0)