File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -223,10 +223,11 @@ jobs:
223223 }
224224
225225 $webhookUrl = "$env:DISCORD_WEBHOOK"
226- $runId = "$env:GITHUB_RUN_ID"
226+ $thisWorkflowRunID = "${{ github.run_id }}"
227+ $artifactWorkflowRunID = "${{ inputs.run_id }}"
228+ $thisWorkflowRunURL = "https://github.com/${{ github.repository }}/actions/runs/$thisWorkflowRunID"
229+ $artifactWorkflowRunURL = "https://github.com/${{ github.repository }}/actions/runs/$artifactWorkflowRunID"
227230 $actor = "$env:GITHUB_ACTOR"
228- $workflowRunURL = "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
229- $composedURL = "https://github.com/Devsh-Graphics-Programming/Nabla/actions/runs/$runId"
230231 $sendDiscord = "$env:DISCORD_ENABLED" -eq "true"
231232 $hours = [int]$env:TUNNEL_DURATION_HOURS
232233 $duration = $hours * 3600
@@ -236,8 +237,8 @@ jobs:
236237 $description = @"
237238 - tunnel opened for $hours hours, click [here](<$url>) to connect
238239 - requires authentication
239- - workflow [logs #$runId ](<$workflowRunURL >)
240- - image downloaded from [run #$runId ](<$composedURL >)
240+ - workflow [logs #$thisWorkflowRunID ](<$thisWorkflowRunURL >)
241+ - image downloaded from [run #$artifactWorkflowRunID ](<$artifactWorkflowRunURL >)
241242 - dispatched by $actor
242243 "@
243244
You can’t perform that action at this time.
0 commit comments