Skip to content

Commit 50afcaf

Browse files
committed
fix(action.yml): update png_raw_file_path and legend_raw_file_path URLs to point to the raw file on GitHub with the correct branch name. This allows compatibility with Github Enterprise version.
1 parent 65219cd commit 50afcaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ runs:
6060
legend_file="${base_name}-key.png"
6161
6262
# URLs for diagram and its legend
63-
png_raw_file_path="https://raw.githubusercontent.com/${{ github.repository }}/${{ env.HEAD_SHA }}/${{ inputs.output-path }}/${png_file}"
64-
legend_raw_file_path="https://raw.githubusercontent.com/${{ github.repository }}/${{ env.HEAD_SHA }}/${{ inputs.output-path }}/${legend_file}"
63+
png_raw_file_path="https://github.com/${{ github.repository }}/blob/${{ github.event.workflow_run.head_branch }}/${{ inputs.output-path }}/${png_file}?raw=true"
64+
legend_raw_file_path="https://github.com/${{ github.repository }}/blob/${{ github.event.workflow_run.head_branch }}/${{ inputs.output-path }}/${legend_file}?raw=true"
6565
6666
echo "<details>" >> "$GITHUB_ENV"
6767
clean_base_name=${base_name#structurizr-}

0 commit comments

Comments
 (0)