From 568a61bf87d7229e04d5b8504716e03b1504b98b Mon Sep 17 00:00:00 2001 From: Soren Spicknall Date: Thu, 18 Jan 2024 14:53:14 -0600 Subject: [PATCH] Fix up event ref for deletion of docs associated with deleted branch --- .github/workflows/clean-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/clean-docs.yml b/.github/workflows/clean-docs.yml index 4d69640c..ecfabc11 100644 --- a/.github/workflows/clean-docs.yml +++ b/.github/workflows/clean-docs.yml @@ -17,7 +17,7 @@ jobs: if: github.head_ref == '' run: | IFS="\/"; - read -a strarr <<< "${{ github.ref }}"; + read -a strarr <<< "${{ github.event.ref }}"; last_ref="${strarr[${#strarr[*]}-1]}"; echo "Slug=$(echo $last_ref)" >> "$GITHUB_ENV" - name: Document which reference