From 64e56a8518fcb937dc54fb9292e50e58788ad87e Mon Sep 17 00:00:00 2001 From: Cosmic Vagabond <121588426+cosmic-vagabond@users.noreply.github.com> Date: Fri, 17 May 2024 15:05:40 +0200 Subject: [PATCH] ci: fix github ref --- .github/workflows/delete-branch-snapshot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/delete-branch-snapshot.yml b/.github/workflows/delete-branch-snapshot.yml index ae3b3bfb0..a0a67f2c5 100644 --- a/.github/workflows/delete-branch-snapshot.yml +++ b/.github/workflows/delete-branch-snapshot.yml @@ -38,6 +38,6 @@ jobs: R2_ENDPOINT: ${{ secrets.R2_ENDPOINT }} R2_BUCKET_NAME: ${{ secrets.R2_BUCKET_NAME }} run: | - SANITIZED_HEAD_REF=${{ github.head_ref || github.ref }} + SANITIZED_HEAD_REF=${{ github.ref }} SANITIZED_HEAD_REF=$(echo "$SANITIZED_HEAD_REF" | sed 's|refs/heads/||; s|/|_|g') ./build/delete-snapshot "$SANITIZED_HEAD_REF"