Skip to content

Commit

Permalink
fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
martimlobao committed Nov 3, 2024
1 parent abe3e30 commit 41530bb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 30 deletions.
30 changes: 9 additions & 21 deletions .github/workflows/lint_pr.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,23 @@
---
name: Lint PR
on: # yamllint disable-line rule:truthy
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened

permissions:
pull-requests: read
pull_request:
branches: [main]

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shellcheck:
name: shellcheck
name: Run shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Display shellcheck version
run: shellcheck --version
- name: shellcheck
run: shellcheck -x **/*.sh
uses: ludeeus/action-shellcheck@master
env:
SHELLCHECK_OPTS: -x
with:
ignore_names: .zshrc .zprofile
yamllint:
name: yamllint
name: Run yamllint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
22 changes: 13 additions & 9 deletions .github/workflows/validate_pr.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
---
name: Validate Pull Request
on: # yamllint disable-line rule:truthy
pull_request:
branches: [main]
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened

permissions:
pull-requests: read

jobs:
shellcheck:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: shellcheck
uses: ludeeus/action-shellcheck@master
- uses: amannn/action-semantic-pull-request@v5
env:
SHELLCHECK_OPTS: -x
with:
ignore_names: .zshrc .zprofile
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 41530bb

Please sign in to comment.