Skip to content

Commit

Permalink
Corrected script
Browse files Browse the repository at this point in the history
  • Loading branch information
MukuFlash03 committed Oct 4, 2024
1 parent a8fb27f commit 294fc90
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/reusable_image_build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 294fc90

Please sign in to comment.