Skip to content

Commit 01a8f5d

Browse files
committed
fix(action): add bark to path
1 parent a9bd3ba commit 01a8f5d

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

action.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ inputs:
2727
runs:
2828
using: "composite"
2929
steps:
30+
- name: Install Go
31+
uses: actions/setup-go@v5
32+
with:
33+
go-version: '1.24.5'
34+
3035
- name: Install Bark
3136
shell: bash
3237
run: |
@@ -36,13 +41,22 @@ runs:
3641
else
3742
go install github.com/debkanchan/bark/cmd/bark@${{ inputs.version }}
3843
fi
44+
45+
# Add Go bin to PATH
46+
echo "$HOME/go/bin" >> $GITHUB_PATH
3947
echo "✅ Bark installed successfully"
4048
4149
- name: Run Bark
4250
shell: bash
4351
run: |
4452
echo "🔍 Scanning for BARK comments in ${{ inputs.path }}"
45-
bark -format ${{ inputs.format }} ${{ inputs.path }}
53+
# Use full path as fallback
54+
BARK_CMD="bark"
55+
if ! command -v bark &> /dev/null; then
56+
BARK_CMD="$HOME/go/bin/bark"
57+
fi
58+
59+
$BARK_CMD -format ${{ inputs.format }} ${{ inputs.path }}
4660
exit_code=$?
4761
4862
if [ "${{ inputs.fail-on-findings }}" = "false" ]; then

0 commit comments

Comments
 (0)