Skip to content

Commit

Permalink
added vendor option (test)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufpapurcu committed Feb 19, 2022
1 parent 0a4313a commit a5052d8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ runs:
go-version: 1.16
id: go

- run: |
if echo ${{ inputs.runVendor }} | grep -c "true"
then
echo "Skipping Vendoring Step"
else
go mod vendor
fi
shell: bash
- name: Run go mod vendor
if: inputs.runVendor == 'true'
run: go mod vendor
Expand Down

0 comments on commit a5052d8

Please sign in to comment.