Skip to content

Commit 6b7ee61

Browse files
committed
Enable inputs.debug for workflow
1 parent a1a6e35 commit 6b7ee61

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/provenance.yml

+11
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ name: Publish Packages to npm
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
debug:
7+
description: 'Enable debug output'
8+
required: false
9+
default: '0'
10+
type: string
11+
options:
12+
- '0'
13+
- '1'
514

615
jobs:
716
build:
@@ -25,6 +34,8 @@ jobs:
2534
- run: npm publish --provenance --tag latest --access public
2635
env:
2736
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
SOCKET_CLI_DEBUG: ${{ inputs.debug }}
2838
- run: npm access set mfa=automation @socketregistry/packageurl-js
2939
env:
3040
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
41+
SOCKET_CLI_DEBUG: ${{ inputs.debug }}

.github/workflows/test.yml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
pull_request:
1010
branches:
1111
- main
12+
workflow_dispatch:
1213

1314
permissions:
1415
contents: read

0 commit comments

Comments
 (0)