Skip to content

Commit

Permalink
squash! processor: fix Github Actions status badges urls
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdulrhmnGhanem committed Sep 28, 2022
1 parent 5c27d0c commit 989b373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processor/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function toGitHubRawUrl(url: string) {
parsedUrl.hostname = 'raw.githubusercontent.com'
const urlPath = parsedUrl.pathname.split('/')
// Avoid using modifying github actions status badges.
const isWorkflowPath = urlPath?.[3] === 'workflows'
const isWorkflowPath = ['workflows', 'actions'].includes(urlPath?.[3])

if (!isWorkflowPath) {
// Remove `/blob/` or '/raw/' from the path.
Expand Down

0 comments on commit 989b373

Please sign in to comment.