File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ inputs:
2727runs :
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
You can’t perform that action at this time.
0 commit comments