Skip to content

Commit

Permalink
ci: update Differential ShellCheck workflow
Browse files Browse the repository at this point in the history
use default inputs when running on `merge_group`
  • Loading branch information
jamacku committed Jul 31, 2024
1 parent 104fc14 commit 33b5636
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/differential-shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ on:
pull_request:
branches: [ main ]
merge_group:
branches:
- main
types: [ checks_requested ]

permissions:
contents: read

jobs:
lint:
name: Test latest changes
name: Differential ShellCheck - test current changes
runs-on: ubuntu-latest

permissions:
Expand Down Expand Up @@ -46,9 +45,6 @@ jobs:
src/**.{zsh,osh}
display-engine: sarif-fmt
token: ${{ secrets.GITHUB_TOKEN }}
triggering-event: ${{ github.event_name == 'merge_group' && 'manual' || github.event_name }}
base: ${{ github.event.merge_group.base_sha }}
head: ${{ github.event.merge_group.head_sha }}

- if: always()
name: Upload artifact with defects in SARIF format
Expand Down
2 changes: 2 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Next release

* Native support for `merge_group` trigger event

## v5.3.1

* Update `csutils` (`csdiff`) to 3.4.0
Expand Down

0 comments on commit 33b5636

Please sign in to comment.