Skip to content

Commit e5dc54f

Browse files
authored
Delete conditionals section from use-custom-images.md (#58618)
1 parent e488669 commit e5dc54f

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

content/actions/how-tos/manage-runners/larger-runners/use-custom-images.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -89,24 +89,6 @@ jobs:
8989
# Add any steps to download and setup any dependencies here
9090
```
9191

92-
### Conditionals
93-
94-
The `snapshot` keyword supports conditional execution using the `if` keyword around the snapshot mapping. You can use conditions to control when an image snapshot is created. For example, the following job skips image creation for tag builds.
95-
96-
```yaml
97-
jobs:
98-
build:
99-
runs-on: my-image-generation-runner
100-
snapshot:
101-
if: {% raw %}${{ ! startsWith(github.ref, 'refs/tags/') }}{% endraw %}
102-
image-name: my-custom-image
103-
version: 2.*
104-
steps:
105-
# Add any steps to download and setup any dependencies here
106-
```
107-
108-
For more information about the `if` keyword, see [AUTOTITLE](/actions/writing-workflows/choosing-when-your-workflow-runs/using-conditions-to-control-job-execution).
109-
11092
## Versioning
11193

11294
When you generate custom images, {% data variables.product.github %} automatically assigns version numbers to help you manage updates and track image history.

0 commit comments

Comments
 (0)