Skip to content

Commit

Permalink
Make sure snapshot URLs are split on the last @ character (#3274)
Browse files Browse the repository at this point in the history
  • Loading branch information
IMax153 authored Jul 16, 2024
1 parent 42f7654 commit 402ba65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
script: |
const commands = ${{ steps.snapshot.outputs.snapshots }}.map((snapshot) => {
const [package, installer] = snapshot.split(": ")
const [, sha] = installer.split("@")
const [, sha] = installer.split(/@(?=[^@]*$)/)
const header = `<details><summary><b>${package} (${sha})</b></summary><p>`
const content = "\n```sh\n" + installer + "\n```\n"
const footer = `</p></details>`
Expand Down

0 comments on commit 402ba65

Please sign in to comment.