diff --git a/.github/workflows/clean-containers.yaml b/.github/workflows/clean-containers.yaml index 66f03f4..c95ad55 100644 --- a/.github/workflows/clean-containers.yaml +++ b/.github/workflows/clean-containers.yaml @@ -19,12 +19,7 @@ jobs: steps: - name: downcase REPO name run: | - echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV} - curl -L \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/orgs/${{ github.repository_owner }}/packages/container/tiny-rp + 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: