add commit.prerelease (CI_COMMIT_PRERELEASE)

This commit is contained in:
Simon Vieille 2024-02-03 00:18:09 +01:00
parent 3fe8426262
commit 84a6fa518f
2 changed files with 2 additions and 0 deletions

View file

@ -76,6 +76,7 @@ See the [Twig documentation](https://twig.symfony.com/doc/3.x/).
| `commit.author` | `CI_COMMIT_AUTHOR` |
| `commit.author_email` | `CI_COMMIT_AUTHOR_EMAIL` |
| `commit.author_avatar` | `CI_COMMIT_AUTHOR_AVATAR` |
| `commit.prerelease` | `CI_COMMIT_PRERELEASE` |
| `prev_commit.sha` | `CI_PREV_COMMIT_SHA` |
| `prev_commit.ref` | `CI_PREV_COMMIT_REF` |
| `prev_commit.branch` | `CI_PREV_COMMIT_BRANCH` |

View file

@ -32,6 +32,7 @@ $build = EnvVarLoader::buildArray([
'author' => 'CI_COMMIT_AUTHOR',
'author_email' => 'CI_COMMIT_AUTHOR_EMAIL',
'author_avatar' => 'CI_COMMIT_AUTHOR_AVATAR',
'prerelease' => 'CI_COMMIT_PRERELEASE',
],
'prev_commit' => [
'sha' => 'CI_PREV_COMMIT_SHA',