From 4f054d5f3819803d4677ac5674dad6b45eb43801 Mon Sep 17 00:00:00 2001 From: Luciano Facchinelli Date: Fri, 22 Mar 2024 14:27:23 +0000 Subject: [PATCH] Adding checkout of doist/actions before running ghcr clean up action (#19) --- .github/workflows/ghcr-cleanup.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ghcr-cleanup.yml b/.github/workflows/ghcr-cleanup.yml index b45c043..9517616 100644 --- a/.github/workflows/ghcr-cleanup.yml +++ b/.github/workflows/ghcr-cleanup.yml @@ -2,16 +2,21 @@ name: GHCR automatic clean up on: workflow_dispatch - jobs: ghcr-cleanup-job: name: GHCR clean up runs-on: ubuntu-latest steps: + - name: Checkout actions repository + uses: actions/checkout@v4 + with: + repository: Doist/actions + path: ./.doist/actions + token: ${{ secrets.GH_REPO_TOKEN }} - name: GHCR scan and clean up - uses: Doist/actions/ghcr-cleanup-action/action.yml@main + uses: ./.doist/actions/ghcr-cleanup-action/action.yml with: package_name: unfurlist gh_auth_token: ${{ secrets.GH_PACKAGES_TOKEN }} keep_last_number: '2' - dry_run: true \ No newline at end of file + dry_run: true