Skip to content

Commit 7e3046a

Browse files
docs: update actions and workflows documentation
[skip ci] Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 8ef0929 commit 7e3046a

2 files changed

Lines changed: 20 additions & 4 deletions

File tree

.github/workflows/prune-pull-requests-images-tags.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ on:
4848
permissions: {}
4949
jobs:
5050
prune-pull-requests-images-tags:
51-
uses: hoverkraft-tech/ci-github-container/.github/workflows/prune-pull-requests-images-tags.yml@67e5563d6681bb610c1c961eecb6dfcd5b3cc62f # 0.30.5
51+
uses: hoverkraft-tech/ci-github-container/.github/workflows/prune-pull-requests-images-tags.yml@a0bab9151cc074af9f6c8204ab42a48d2d570379 # 0.30.6
5252
permissions: {}
5353
with:
5454
# JSON array of runner(s) to use.
@@ -75,6 +75,11 @@ jobs:
7575
#
7676
# Default: `^pr-([0-9]+)(?:-|$)`
7777
pull-request-tag-filter: ^pr-([0-9]+)(?:-|$)
78+
79+
# Optional regular expression to match tags that should be preserved (not deleted).
80+
# Tags matching this pattern will never be deleted, even if they are on a package version with PR tags.
81+
# Example: "^v.*" to preserve version tags like v1.0.0, v2.1.3, etc.
82+
preserve-tags-filter: ""
7883
````
7984

8085
<!-- usage:end -->
@@ -95,6 +100,9 @@ jobs:
95100
| | Useful when building image with "registry" cache backend. | | | |
96101
| **`pull-request-tag-filter`** | The regular expression to match pull request tags. | **false** | **string** | `^pr-([0-9]+)(?:-\|$)` |
97102
| | Must have a capture group for the pull request number. | | | |
103+
| **`preserve-tags-filter`** | Optional regular expression to match tags that should be preserved (not deleted). | **false** | **string** | - |
104+
| | Tags matching this pattern will never be deleted, even if they are on a package version with PR tags. | | | |
105+
| | Example: "^v.*" to preserve version tags like v1.0.0, v2.1.3, etc. | | | |
98106

99107
<!-- inputs:end -->
100108
<!-- secrets:start -->
@@ -125,7 +133,7 @@ This project is licensed under the MIT License.
125133

126134
SPDX-License-Identifier: MIT
127135

128-
Copyright © 2025 hoverkraft-tech
136+
Copyright © 2026 hoverkraft-tech
129137

130138
For more details, see the [license](http://choosealicense.com/licenses/mit/).
131139

actions/docker/prune-pull-requests-image-tags/README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ permissions:
4444
## Usage
4545
4646
```yaml
47-
- uses: hoverkraft-tech/ci-github-container/actions/docker/prune-pull-requests-image-tags@67e5563d6681bb610c1c961eecb6dfcd5b3cc62f # 0.30.5
47+
- uses: hoverkraft-tech/ci-github-container/actions/docker/prune-pull-requests-image-tags@a0bab9151cc074af9f6c8204ab42a48d2d570379 # 0.30.6
4848
with:
4949
# Image name
5050
image: ""
@@ -53,6 +53,11 @@ permissions:
5353
# Default: `^pr-([0-9]+)(?:-|$)`
5454
pull-request-tag-filter: ^pr-([0-9]+)(?:-|$)
5555

56+
# Optional regular expression to match tags that should be preserved (not deleted).
57+
# Tags matching this pattern will never be deleted, even if they are on a package version with PR tags.
58+
# Example: "^v.*" to preserve version tags like v1.0.0, v2.1.3, etc.
59+
preserve-tags-filter: ""
60+
5661
# GitHub token with the folowing scopes: `pull-requests:read`, `packages:read` and `packages:delete`.
5762
# See https://docs.github.com/en/packages/learn-github-packages/about-permissions-for-github-packages#about-scopes-and-permissions-for-package-registries.
5863
#
@@ -70,6 +75,9 @@ permissions:
7075
| ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ---------------------- |
7176
| **`image`** | Image name | **false** | - |
7277
| **`pull-request-tag-filter`** | The regular expression to match pull request tags. Must have a capture group for the pull request number. | **false** | `^pr-([0-9]+)(?:-\|$)` |
78+
| **`preserve-tags-filter`** | Optional regular expression to match tags that should be preserved (not deleted). | **false** | - |
79+
| | Tags matching this pattern will never be deleted, even if they are on a package version with PR tags. | | |
80+
| | Example: "^v.*" to preserve version tags like v1.0.0, v2.1.3, etc. | | |
7381
| **`github-token`** | GitHub token with the folowing scopes: `pull-requests:read`, `packages:read` and `packages:delete`. | **false** | `${{ github.token }}` |
7482
| | See <https://docs.github.com/en/packages/learn-github-packages/about-permissions-for-github-packages#about-scopes-and-permissions-for-package-registries>. | | |
7583

@@ -122,7 +130,7 @@ This project is licensed under the MIT License.
122130

123131
SPDX-License-Identifier: MIT
124132

125-
Copyright © 2025 hoverkraft
133+
Copyright © 2026 hoverkraft
126134

127135
For more details, see the [license](http://choosealicense.com/licenses/mit/).
128136

0 commit comments

Comments
 (0)