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: