Skip to content

Commit 45db69b

Browse files
authored
Use repo base name for cleanup workflow
1 parent db68f4a commit 45db69b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/cleanup.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,18 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
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+
1623
- name: Delete untagged Docker images
1724
uses: Chizkiyahu/delete-untagged-ghcr-action@v4
1825
with:
1926
token: ${{ secrets.GHCR_ACCESS_TOKEN }}
2027
owner_type: user
21-
package_name: ${{ github.repository }}
28+
package_name: ${{ env.REPOSITORY_NAME }}
2229
untagged_only: true
2330

0 commit comments

Comments
 (0)