Skip to content

Commit

Permalink
Quote workflow names to fix workflows containing spaces
Browse files Browse the repository at this point in the history
When the workflow name contains a space, only the first word of the workflow is captured in the search URL, causing the search to be incorrect. This adds quotes so that the full workflow name is always captured.
  • Loading branch information
Jamesking56 committed Dec 20, 2023
1 parent 160cf66 commit 037a05e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export async function send(

const runId = process.env.GITHUB_RUN_ID
const runNumber = process.env.GITHUB_RUN_NUMBER
const workflowUrl = `${repositoryUrl}/actions?query=workflow:${workflow}`
const workflowUrl = `${repositoryUrl}/actions?query=workflow:"${workflow}"`
const workflowRunUrl = `${repositoryUrl}/actions/runs/${runId}`

const sha = process.env.GITHUB_SHA as string
Expand Down

0 comments on commit 037a05e

Please sign in to comment.