From a1706ba806be50a5d30042dc7facb255f9a3c871 Mon Sep 17 00:00:00 2001 From: Brynley Llewellyn-Roux Date: Fri, 9 Aug 2024 08:58:27 +1000 Subject: [PATCH] ci: improve certificate cleanup script --- .github/workflows/clean.yml | 2 +- scripts/{ssl.sh => certs_cleanup.sh} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename scripts/{ssl.sh => certs_cleanup.sh} (97%) diff --git a/.github/workflows/clean.yml b/.github/workflows/clean.yml index 17c75b7..5dcaf17 100644 --- a/.github/workflows/clean.yml +++ b/.github/workflows/clean.yml @@ -29,5 +29,5 @@ jobs: echo 'Perform service deployment for feature' nix develop .#ci --command bash -c $' wrangler delete --name "polykey-docs-dev-$GITHUB_HEAD_REF" --force - DOMAIN="$GITHUB_HEAD_REF.dev.polykey.com/docs" ./scripts/ssl.sh + DOMAIN="$GITHUB_HEAD_REF.dev.polykey.com/docs" ./scripts/certs_cleanup.sh ' diff --git a/scripts/ssl.sh b/scripts/certs_cleanup.sh similarity index 97% rename from scripts/ssl.sh rename to scripts/certs_cleanup.sh index f71a241..5fc01cb 100755 --- a/scripts/ssl.sh +++ b/scripts/certs_cleanup.sh @@ -1,4 +1,4 @@ -#/bin/sh +#!/usr/bin/env sh response=$(curl -X GET "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/ssl/certificate_packs" \ -H "Content-Type: application/json" \