Debugging CF subdomain step....
This commit is contained in:
@@ -40,14 +40,16 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# - uses: actions/cache@v4
|
- name: Cache flarectl and Go dependencies
|
||||||
# with:
|
uses: actions/cache@v4
|
||||||
# path: |
|
with:
|
||||||
# ~/.cache/go-build
|
path: |
|
||||||
# ~/go/pkg/mod
|
~/.cache/go-build
|
||||||
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
~/go/pkg/mod
|
||||||
# restore-keys: |
|
~/go/bin/flarectl
|
||||||
# ${{ runner.os }}-go-
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-go-
|
||||||
|
|
||||||
- name: Setup yq
|
- name: Setup yq
|
||||||
uses: dcarbone/install-yq-action@v1
|
uses: dcarbone/install-yq-action@v1
|
||||||
@@ -62,12 +64,18 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup flarectl
|
- name: Setup flarectl
|
||||||
run: |
|
run: |
|
||||||
if [ -z $(echo $GOPATH) ]; then
|
if [ -z "$(echo $GOPATH)" ]; then
|
||||||
export GOPATH=$HOME/go
|
export GOPATH=$HOME/go
|
||||||
fi
|
fi
|
||||||
export PATH=$PATH:$GOPATH/bin
|
export PATH=$PATH:$GOPATH/bin
|
||||||
go env ${{ github.workspace }}
|
# Check if flarectl exists; install if not cached
|
||||||
go install github.com/cloudflare/cloudflare-go/cmd/flarectl@latest
|
if ! command -v flarectl &> /dev/null; then
|
||||||
|
echo "flarectl not found, installing..."
|
||||||
|
go env ${{ github.workspace }}
|
||||||
|
go install github.com/cloudflare/cloudflare-go/cmd/flarectl@latest
|
||||||
|
else
|
||||||
|
echo "flarectl found in cache."
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Retrieve Cloudflare Subdomains
|
- name: Retrieve Cloudflare Subdomains
|
||||||
id: compare-subdomains
|
id: compare-subdomains
|
||||||
|
|||||||
Reference in New Issue
Block a user