File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 11# /usr/bin/env bash
22
3+ set -e # Fail on first failed command
4+
35if ! command -v earthly > /dev/null; then
4- echo " $0 : No Earthly found in PATH"
6+ echo " $0 : No Earthly found in PATH" >&2
57 exit 2
68fi
79
8- set -e # Fail on first failed command
10+ # Optionally check if gh and the act extension are installed
11+ if gh act --help > /dev/null 2>&1 ; then
12+ gh act --artifact-server-path $PWD /workflow-artifacts
13+ exit $?
14+ elif ! gh --help > /dev/null 2>&1 ; then
15+ echo " $0 : No gh found in PATH; falling back to earthly" >&2
16+ else
17+ echo " $0 : No nektos/gh-act extension installed; falling back to earthly" >&2
18+ fi
919
1020# Workaround for: https://github.com/earthly/earthly/issues/4220
1121export EARTHLY_DISABLE_REMOTE_REGISTRY_PROXY=true
You can’t perform that action at this time.
0 commit comments