From d5f32f0570d1dcaa6d36da31c8f159e7f0ca4c30 Mon Sep 17 00:00:00 2001 From: Felipe Morato Date: Fri, 9 Aug 2024 13:13:32 +0300 Subject: [PATCH] Fix clean-containers --- .github/workflows/clean-containers.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/clean-containers.yaml b/.github/workflows/clean-containers.yaml index b1a7bbb..c95ad55 100644 --- a/.github/workflows/clean-containers.yaml +++ b/.github/workflows/clean-containers.yaml @@ -6,6 +6,7 @@ name: ghcr actions on: + workflow_dispatch: schedule: - cron: "21 21 * * *" @@ -18,7 +19,7 @@ jobs: steps: - name: downcase REPO name run: | - echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV} + echo "REPO=$(echo $GITHUB_REPOSITORY | cut -f2 -d/)" >> ${GITHUB_ENV} - name: Delete 'PR' containers older than a week uses: snok/container-retention-policy@v3.0.0 with: