Commit c5e8a046 authored by Jaime Martinez's avatar Jaime Martinez Committed by Marcel Amirault

Update release note in yaml example

parent ce6e7abd
...@@ -3729,8 +3729,7 @@ For more information, see [Deployments Safety](../environments/deployment_safety ...@@ -3729,8 +3729,7 @@ For more information, see [Deployments Safety](../environments/deployment_safety
> [Introduced](https://gitlab.com/gitlab-org/gitlab/merge_requests/19298) in GitLab 13.2. > [Introduced](https://gitlab.com/gitlab-org/gitlab/merge_requests/19298) in GitLab 13.2.
`release` indicates that the job creates a [Release](../../user/project/releases/index.md), `release` indicates that the job creates a [Release](../../user/project/releases/index.md).
and optionally includes URLs for Release assets.
These methods are supported: These methods are supported:
...@@ -3863,7 +3862,7 @@ tags. These options cannot be used together, so choose one: ...@@ -3863,7 +3862,7 @@ tags. These options cannot be used together, so choose one:
# or can use a variable. # or can use a variable.
``` ```
- To create a release automatically when changes are pushed to the default branch, - To create a release automatically when commits are pushed or merged to the default branch,
using a new Git tag that is defined with variables: using a new Git tag that is defined with variables:
```yaml ```yaml
...@@ -3873,7 +3872,7 @@ tags. These options cannot be used together, so choose one: ...@@ -3873,7 +3872,7 @@ tags. These options cannot be used together, so choose one:
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
when: never # Do not run this job when a tag is created manually when: never # Do not run this job when a tag is created manually
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when the default branch changes - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch
script: script:
- echo 'running release_job' - echo 'running release_job'
release: release:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment