From 5d5bccf1bb531796c302b71bbc1874fdcc7d6ed7 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 12 Aug 2024 09:53:45 +0300 Subject: [PATCH] gha: should've been doing this in a branch meh --- .github/workflows/c-cpp.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 06fa88a8..51991e09 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -98,7 +98,9 @@ jobs: if: ${{ github.event_name == 'push' }} steps: - name: Remove old release - run: gh release delete -y --cleanup-tag ${{ github.ref_name == 'master' && 'continuous' || format('continuous-{0}', github.ref_name) }} + run: | + cd $GITHUB_WORKSPACE + gh release delete -y --cleanup-tag ${{ github.ref_name == 'master' && 'continuous' || format('continuous-{0}', github.ref_name) }} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Fetch artifacts