File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 3434 GITHUB_REPOSITORY : ${{ github.repository }}
3535 WORKFLOW_NAME : ${{ inputs.workflow_name }}
3636 ARTIFACT_NAME : ${{ inputs.artifact_name }}
37+ WORKFLOW_RUN_URL : ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
3738
3839 - name : Upload pages artifact
3940 uses : actions/upload-pages-artifact@v4
Original file line number Diff line number Diff line change @@ -84,9 +84,15 @@ <h1>Playable branches from <a href="{{ repo_details.html_url}}">{{ repo_details.
8484</ main >
8585< footer >
8686 Created with < a href ="https://github.com/endlessm/amalgamate-pages "> Amalgamate Pages</ a > at
87- < time datetime ="{{ generation_time.isoformat() }} "> {{
88- generation_time | pretty_datetime
89- }}</ time > .
87+ {% if workflow_run_url %}
88+ < a href ="{{ workflow_run_url }} ">
89+ {%- endif -%}
90+ < time datetime ="{{ generation_time.isoformat() }} "> {{
91+ generation_time | pretty_datetime
92+ }}</ time >
93+ {%- if workflow_run_url -%}
94+ </ a >
95+ {%- endif %}.
9096</ footer >
9197</ body >
9298</ html >
Original file line number Diff line number Diff line change @@ -475,6 +475,7 @@ def run(self) -> None:
475475 "latest_release" : latest_release ,
476476 "branches" : items ,
477477 "generation_time" : dt .datetime .now (tz = dt .timezone .utc ),
478+ "workflow_run_url" : os .environ .get ("WORKFLOW_RUN_URL" ),
478479 },
479480 )
480481 shutil .copy ("branches.css" , branches_dir / "branches.css" )
You can’t perform that action at this time.
0 commit comments