We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db68f4a commit 45db69bCopy full SHA for 45db69b
.github/workflows/cleanup.yml
@@ -13,11 +13,18 @@ jobs:
13
runs-on: ubuntu-latest
14
15
steps:
16
+ - name: Get repository name
17
+ run: |
18
+ REPOSITORY_NAME="${{ github.repository }}"
19
+ REPOSITORY_NAME="${REPOSITORY_NAME##*/}"
20
+ echo "Repository name is: $REPOSITORY_NAME"
21
+ echo "REPOSITORY_NAME=$REPOSITORY_NAME" >> $GITHUB_ENV
22
+
23
- name: Delete untagged Docker images
24
uses: Chizkiyahu/delete-untagged-ghcr-action@v4
25
with:
26
token: ${{ secrets.GHCR_ACCESS_TOKEN }}
27
owner_type: user
- package_name: ${{ github.repository }}
28
+ package_name: ${{ env.REPOSITORY_NAME }}
29
untagged_only: true
30
0 commit comments