Skip to content

Commit

Permalink
fix: Disabling Go Cache and checking if Golang is already present
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosrfjunior committed Sep 17, 2024
1 parent 540906a commit 9ab5810
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,23 @@ runs:
echo "::group::Template path"
cp -Rv ${{ inputs.template-path }}/* ./template
echo "::endgroup::"
- if: ${{ inputs.go-setup == 'true' }}
- name: Check if Golang command exists.
id: golang-exists
shell: bash
run: |
if command -v go &> /dev/null
then
echo "installed=true" >> "$GITHUB_OUTPUT"
else
echo "installed=false" >> "$GITHUB_OUTPUT"
fi
- if: ${{ inputs.go-setup == 'true' && steps.golang-exists.outputs.installed == 'false' }}
name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.23.x'
cache: false
- name: Installing GoModeler for Templates
shell: bash
run: |
Expand Down

0 comments on commit 9ab5810

Please sign in to comment.