diff --git a/.github/workflows/reusable_image_build_push.yml b/.github/workflows/reusable_image_build_push.yml index a79178b92..c8beeb5ac 100644 --- a/.github/workflows/reusable_image_build_push.yml +++ b/.github/workflows/reusable_image_build_push.yml @@ -36,19 +36,16 @@ jobs: - name: Fetch latest release tags for all repositories id: fetch-latest-release-tags run: | - repo_name=${{ inputs.repo }} - response=$(curl -L -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer ${{ secrets.GH_FG_PAT_TAGS }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ - "https://api.github.com/repos/MukuFlash03/$repo_name/releases/latest") + "https://api.github.com/repos/MukuFlash03/${{ inputs.repo }}/releases/latest") tag_name=$(echo "$response" | jq -r '.tag_name') target_commitish=$(echo "$response" | jq -r '.target_commitish') - echo "tag_name=${tag_name}" >> "$GITHUB_OUTPUT" - echo "target_commitish=${target_commitish}" >> "$GITHUB_OUTPUT" - done + echo "tag_name=$(echo "$response" | jq -r '.tag_name')" >> "$GITHUB_OUTPUT" + echo "target_commitish=$(echo "$response" | jq -r '.target_commitish')" >> "$GITHUB_OUTPUT" - name: Print fetched tags run: |