fix(prometheus) fixing namespace creation before applying homepage co… #87
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint code | |
on: | |
push: | |
branches: [stage] | |
paths: | |
- vkpr/**/*.sh | |
pull_request: | |
branches: [stage] | |
paths: | |
- vkpr/**/*.sh | |
jobs: | |
lint: | |
name: Lint shell files | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/[email protected] | |
with: | |
files: | | |
*.sh | |
**/*.sh | |
- name: Lint new shell files | |
if: contains(steps.changed-files.outputs.added_files, '.sh') | |
run: | | |
shellcheck -S warning ${{steps.changed-files.outputs.added_files}} | |
- name: Lint existing shell files | |
if: contains(steps.changed-files.outputs.all_changed_files, '.sh') | |
run: | | |
shellcheck -S warning ${{steps.changed-files.outputs.all_changed_files}} |