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