1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-26 18:20:59 +00:00

fix: secrets can be used in jobs.*.if expressions

This commit is contained in:
Earl Warren 2025-07-12 13:42:56 +02:00
parent 4b2eb56a54
commit 2a37f3f1c3

View file

@ -1519,7 +1519,8 @@
"always(0,0)",
"failure(0,MAX)",
"cancelled(0,0)",
"success(0,MAX)"
"success(0,MAX)",
"secrets"
],
"string": {
"is-expression": true
@ -1535,7 +1536,8 @@
"always(0,0)",
"failure(0,MAX)",
"cancelled(0,0)",
"success(0,MAX)"
"success(0,MAX)",
"secrets"
],
"one-of": ["null", "boolean", "number", "string", "sequence", "mapping"]
},
@ -1801,7 +1803,8 @@
"failure(0,0)",
"cancelled(0,0)",
"success(0,0)",
"hashFiles(1,255)"
"hashFiles(1,255)",
"secrets"
],
"description": "Use the `if` conditional to prevent a step from running unless a condition is met. Any supported context and expression can be used to create a conditional. Expressions in an `if` conditional do not require the bracketed expression syntax. When you use expressions in an `if` conditional, you may omit the expression syntax because GitHub automatically evaluates the `if` conditional as an expression.",
"string": {
@ -1824,7 +1827,8 @@
"failure(0,0)",
"cancelled(0,0)",
"success(0,0)",
"hashFiles(1,255)"
"hashFiles(1,255)",
"secrets"
],
"one-of": ["null", "boolean", "number", "string", "sequence", "mapping"]
},