Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions .github/workflows/sigil.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,13 @@ permissions:
jobs:
comment:
runs-on: ubuntu-latest
env:
SIGIL_SIGN_URL: ${{ vars.SIGIL_SIGN_URL }}
steps:
- uses: actions/github-script@373c709c69115d41ff229c7e5df9f8788daa9553
with:
script: |
const marker = "<!-- sigil-sign-pr -->";
const pullRequest = context.payload.pull_request;
if (!process.env.SIGIL_SIGN_URL) {
throw new Error("Set the SIGIL_SIGN_URL repository variable.");
}
const signingURL = new URL(process.env.SIGIL_SIGN_URL);
if (signingURL.protocol !== "https:") {
throw new Error("SIGIL_SIGN_URL must use HTTPS.");
}
const signingURL = new URL("https://sigil.fklabs.workers.dev/sign");
signingURL.search = new URLSearchParams({
repository: `${context.repo.owner}/${context.repo.repo}`,
pull_request: pullRequest.html_url,
Expand Down
Loading