Skip to content

Commit

Permalink
fix(action.yml): update png_raw_file_path and legend_raw_file_path UR…
Browse files Browse the repository at this point in the history
…Ls to point to the raw file on GitHub with the correct branch name. This allows compatibility with Github Enterprise version.
  • Loading branch information
sebastienfi committed Dec 29, 2023
1 parent 65219cd commit 50afcaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ runs:
legend_file="${base_name}-key.png"
# URLs for diagram and its legend
png_raw_file_path="https://raw.githubusercontent.com/${{ github.repository }}/${{ env.HEAD_SHA }}/${{ inputs.output-path }}/${png_file}"
legend_raw_file_path="https://raw.githubusercontent.com/${{ github.repository }}/${{ env.HEAD_SHA }}/${{ inputs.output-path }}/${legend_file}"
png_raw_file_path="https://github.com/${{ github.repository }}/blob/${{ github.event.workflow_run.head_branch }}/${{ inputs.output-path }}/${png_file}?raw=true"
legend_raw_file_path="https://github.com/${{ github.repository }}/blob/${{ github.event.workflow_run.head_branch }}/${{ inputs.output-path }}/${legend_file}?raw=true"
echo "<details>" >> "$GITHUB_ENV"
clean_base_name=${base_name#structurizr-}
Expand Down

0 comments on commit 50afcaf

Please sign in to comment.