From b0f0621b13cfea8f3063a24493a61a3cb90c9724 Mon Sep 17 00:00:00 2001 From: Panagiotis Galopoulos Date: Thu, 12 Dec 2024 12:11:29 +0200 Subject: [PATCH] Added step to get the repository name in the publish action --- .github/workflows/publish.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index e8de04a..860986b 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -7,6 +7,12 @@ jobs: runs-on: ubuntu-latest if: ${{ (github.ref == 'refs/heads/main') && (github.event.pusher.name != 'fluxcdbot') }} steps: + - name: Get repo name + id: repo + run: | + echo "${ github.repository }}" | cut -d "/" -f 2 > repo.txt + echo "name=$(cat repo.txt)" >> $GITHUB_OUTPUT + rm repo.txt - name: Checkout uses: actions/checkout@v4 - name: Get current date @@ -24,7 +30,7 @@ jobs: uses: docker/metadata-action@v5 with: images: | - mever/${{ inputs.repo }} + mever/${{ steps.repo.outputs.name }} tags: | type=ref,event=branch type=ref,event=tag