Commit 64b0f96
committed
Fix invalid workflow: secrets context unavailable in job-level if
The `secrets` context is not available in job-level `if` conditionals
in GitHub Actions, causing the workflow file to be rejected with:
Unrecognized named-value: 'secrets'
Move the DATABASE_URL check into a step that sets an output, then
gate all subsequent steps on that output. This keeps the same
skip-when-no-secret behavior while using only valid expression
contexts.
https://claude.ai/code/session_01UyJVDfW8tzi4a7qrN7uQzw1 parent 5a80a5c commit 64b0f96
1 file changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | 84 | | |
86 | 85 | | |
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
90 | 99 | | |
| 100 | + | |
91 | 101 | | |
92 | 102 | | |
| 103 | + | |
93 | 104 | | |
94 | 105 | | |
95 | 106 | | |
96 | 107 | | |
| 108 | + | |
97 | 109 | | |
98 | 110 | | |
99 | 111 | | |
100 | 112 | | |
101 | 113 | | |
| 114 | + | |
102 | 115 | | |
103 | 116 | | |
104 | 117 | | |
| 118 | + | |
105 | 119 | | |
106 | 120 | | |
107 | 121 | | |
| 122 | + | |
108 | 123 | | |
0 commit comments