Debugging CF subdomain step....

This commit is contained in:
2025-01-01 13:20:07 -05:00
parent 3ba38e769f
commit fb9443a21d
+17 -9
View File
@@ -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
# Check if flarectl exists; install if not cached
if ! command -v flarectl &> /dev/null; then
echo "flarectl not found, installing..."
go env ${{ github.workspace }} go env ${{ github.workspace }}
go install github.com/cloudflare/cloudflare-go/cmd/flarectl@latest 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