diff --git a/.github/workflows/cleanup_images.yml b/.github/workflows/cleanup_images.yml index 83ababc8..7032e453 100644 --- a/.github/workflows/cleanup_images.yml +++ b/.github/workflows/cleanup_images.yml @@ -44,7 +44,7 @@ jobs: uses: dataaxiom/ghcr-cleanup-action@98b4022383d6ddb70ccbf6a378b4d8c67a60f066 if: github.event_name == 'pull_request' with: - token: ${{ secrets.BOT_GITHUB_TOKEN }} + token: ${{ secrets.DELETE_PACKAGES_GITHUB_TOKEN }} owner: ${{ env.ORG }} repository: ${{ env.REPO }} packages: ${{ env.PACKAGE_NAMES }} @@ -52,13 +52,13 @@ jobs: dry-run: ${{ github.event_name == 'workflow_dispatch' && inputs.dry-run || (github.event_name != 'workflow_dispatch' && 'true') }} - name: status env: - GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.DELETE_PACKAGES_GITHUB_TOKEN }} run: gh auth status - name: Remove untaged images and keep latest ${{ env.KEEP_AMOUNT }} images uses: dataaxiom/ghcr-cleanup-action@98b4022383d6ddb70ccbf6a378b4d8c67a60f066 if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' with: - token: ${{ secrets.BOT_GITHUB_TOKEN }} + token: ${{ secrets.DELETE_PACKAGES_GITHUB_TOKEN }} owner: ${{ env.ORG }} repository: ${{ env.REPO }} packages: ${{ env.PACKAGE_NAMES }}