mirror of
https://github.com/morten-olsen/http.md.git
synced 2026-02-08 00:46:28 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9e79f9e958 | ||
|
|
b800290d72 |
4
.github/workflows/main.yaml
vendored
4
.github/workflows/main.yaml
vendored
@@ -20,7 +20,7 @@ env:
|
|||||||
IMAGE_NAME: ${{ github.repository }}
|
IMAGE_NAME: ${{ github.repository }}
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: write
|
||||||
packages: read
|
packages: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -132,6 +132,6 @@ jobs:
|
|||||||
git config user.name "Github Actions Bot"
|
git config user.name "Github Actions Bot"
|
||||||
git config user.email "<>"
|
git config user.email "<>"
|
||||||
node ./scripts/set-version.mjs $(git describe --tag --abbrev=0)
|
node ./scripts/set-version.mjs $(git describe --tag --abbrev=0)
|
||||||
pnpm publish --no-git-checks --access public
|
pnpm publish --access public
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|||||||
@@ -16,6 +16,11 @@ const httpHandler: ExecutionHandler = ({
|
|||||||
return [key.trim(), value?.trim() || true];
|
return [key.trim(), value?.trim() || true];
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
let id = options.id?.toString();
|
||||||
|
const idPart = optionParts.find((option) => option.startsWith('#'));
|
||||||
|
if (idPart) {
|
||||||
|
id = idPart.slice(1);
|
||||||
|
}
|
||||||
|
|
||||||
addStep({
|
addStep({
|
||||||
type: 'http',
|
type: 'http',
|
||||||
@@ -66,7 +71,7 @@ const httpHandler: ExecutionHandler = ({
|
|||||||
node.meta = undefined;
|
node.meta = undefined;
|
||||||
|
|
||||||
context.addRequest({
|
context.addRequest({
|
||||||
id: options.id?.toString(),
|
id,
|
||||||
request: {
|
request: {
|
||||||
method,
|
method,
|
||||||
url,
|
url,
|
||||||
|
|||||||
Reference in New Issue
Block a user