diff --git a/action.yaml b/action.yaml index ecfb0ef..63ca8aa 100644 --- a/action.yaml +++ b/action.yaml @@ -48,7 +48,10 @@ runs: steps: - name: Install defang shell: bash - run: . <(curl -Lf https://raw.githubusercontent.com/DefangLabs/defang/main/src/bin/install || echo return $?) + run: | + if ! which defang >/dev/null 2>&1; then + . <(curl -Lf https://raw.githubusercontent.com/DefangLabs/defang/main/src/bin/install || echo return $?) + fi env: DEFANG_INSTALL_VERSION: ${{ inputs['cli-version'] }} GH_TOKEN: ${{ github.token }} # avoid rate-limits