Commit 09b46c1
authored
fix(ci): use env context for publish guards in release workflow (#75)
The `secrets` context is not available during workflow parsing for
`workflow_dispatch` events, causing 'Unrecognized named-value: secrets'
errors. Move VSCE_PAT and OVSX_PAT to job-level env and use
`env.VSCE_PAT != ''` in step conditions instead. The `env` context
is resolved at parse time and works with all trigger types.
Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>1 parent 2138a11 commit 09b46c1
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| |||
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
63 | | - | |
| 66 | + | |
64 | 67 | | |
65 | | - | |
66 | | - | |
67 | 68 | | |
68 | | - | |
| 69 | + | |
69 | 70 | | |
70 | | - | |
71 | | - | |
0 commit comments