Skip to content

Commit 9fd55bd

Browse files
authored
Simplify trunk-check-pre-push-always (#672)
Change `trunk-check-pre-push-always` to not use the wrapper script. With interactivity detection changes, we no longer need the wrapper. This will fix the user who ran into the issue where there was a different `trunk` in the PATH. This does not require a version requirement update because the fix has been out since November.
1 parent d67e91e commit 9fd55bd

2 files changed

Lines changed: 1 addition & 33 deletions

File tree

actions/trunk/plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ actions:
4545
- id: trunk-check-pre-push-always
4646
display_name: Trunk Check Pre-Push Hook (Always)
4747
description: Always run 'trunk check' whenever you run 'git push'
48-
run: bash "${cwd}/trunk-check-pre-push.sh" -n --commit-ref-from-pre-push '${hook_stdin_path}'
48+
run: trunk check -n -t git-push --commit-ref-from-pre-push '${hook_stdin_path}'
4949
interactive: optional
5050
triggers:
5151
- git_hooks: [pre-push]

actions/trunk/trunk-check-pre-push.sh

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)