ghcr-manager 0.9.3 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/README.md +13 -13
- package/dist/cleanup-summary/_cleanup-summary-markdown.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,25 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.9.5] - 2026-05-21
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Renamed `upload-db-artifact` to `upload-artifacts`.
|
|
15
|
+
- Raised cleanup summary defaults to 100 matched tags and 100 roots per section.
|
|
16
|
+
|
|
17
|
+
## [0.9.4] - 2026-05-21
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- The root action now exposes `summary-json-path` instead of `summary-json`, so command summaries are consumed by file
|
|
22
|
+
path rather than as a large action output payload.
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- The GitHub Action now passes cleanup and untag summary JSON between steps by file path instead of large environment
|
|
27
|
+
payloads, avoiding GitHub template-memory and argument-length failures on large cleanup runs.
|
|
28
|
+
|
|
10
29
|
## [0.9.3] - 2026-05-21
|
|
11
30
|
|
|
12
31
|
### Changed
|
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ jobs:
|
|
|
33
33
|
|
|
34
34
|
- name: Preview GHCR cleanup
|
|
35
35
|
id: ghcr-manager
|
|
36
|
-
uses: gh-workflow/ghcr-manager@0.9.
|
|
36
|
+
uses: gh-workflow/ghcr-manager@0.9.5
|
|
37
37
|
with:
|
|
38
38
|
command: cleanup
|
|
39
39
|
token: ${{ github.token }}
|
|
@@ -44,7 +44,7 @@ jobs:
|
|
|
44
44
|
keep-n-tagged: "10"
|
|
45
45
|
exclude-tags: |
|
|
46
46
|
latest
|
|
47
|
-
upload-
|
|
47
|
+
upload-artifacts: true
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
After the run:
|
|
@@ -72,7 +72,7 @@ The action supports three commands:
|
|
|
72
72
|
### Preview cleanup
|
|
73
73
|
|
|
74
74
|
```yaml
|
|
75
|
-
- uses: gh-workflow/ghcr-manager@0.9.
|
|
75
|
+
- uses: gh-workflow/ghcr-manager@0.9.5
|
|
76
76
|
with:
|
|
77
77
|
command: cleanup
|
|
78
78
|
token: ${{ github.token }}
|
|
@@ -87,13 +87,13 @@ The action supports three commands:
|
|
|
87
87
|
exclude-tags: |
|
|
88
88
|
latest
|
|
89
89
|
stable
|
|
90
|
-
upload-
|
|
90
|
+
upload-artifacts: true
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
### Apply cleanup
|
|
94
94
|
|
|
95
95
|
```yaml
|
|
96
|
-
- uses: gh-workflow/ghcr-manager@0.9.
|
|
96
|
+
- uses: gh-workflow/ghcr-manager@0.9.5
|
|
97
97
|
with:
|
|
98
98
|
command: cleanup
|
|
99
99
|
token: ${{ github.token }}
|
|
@@ -101,7 +101,7 @@ The action supports three commands:
|
|
|
101
101
|
package: PACKAGE
|
|
102
102
|
delete-untagged: true
|
|
103
103
|
keep-n-tagged: "10"
|
|
104
|
-
upload-
|
|
104
|
+
upload-artifacts: true
|
|
105
105
|
scan-after-cleanup: true
|
|
106
106
|
```
|
|
107
107
|
|
|
@@ -112,7 +112,7 @@ Note: the second scan only runs if cleanup actually makes changes.
|
|
|
112
112
|
### Remove selected tags directly
|
|
113
113
|
|
|
114
114
|
```yaml
|
|
115
|
-
- uses: gh-workflow/ghcr-manager@0.9.
|
|
115
|
+
- uses: gh-workflow/ghcr-manager@0.9.5
|
|
116
116
|
with:
|
|
117
117
|
command: untag
|
|
118
118
|
token: ${{ github.token }}
|
|
@@ -128,7 +128,7 @@ Note: the second scan only runs if cleanup actually makes changes.
|
|
|
128
128
|
### Scan one package
|
|
129
129
|
|
|
130
130
|
```yaml
|
|
131
|
-
- uses: gh-workflow/ghcr-manager@0.9.
|
|
131
|
+
- uses: gh-workflow/ghcr-manager@0.9.5
|
|
132
132
|
with:
|
|
133
133
|
command: scan
|
|
134
134
|
token: ${{ github.token }}
|
|
@@ -149,7 +149,7 @@ Note: the second scan only runs if cleanup actually makes changes.
|
|
|
149
149
|
| `owner` | Package owner | all | Yes | |
|
|
150
150
|
| `package` | Package name | all | Yes | |
|
|
151
151
|
| `db-path` | Local SQLite DB path | s,c | No | |
|
|
152
|
-
| `upload-
|
|
152
|
+
| `upload-artifacts` | Upload DB and summary artifacts | s,c | No | `false` |
|
|
153
153
|
| `scan-after-cleanup` | Run a second scan after cleanup | c | No | `false` |
|
|
154
154
|
| `db-artifact-retention-days` | Override artifact retention days | s,c | No | `${{ github.retention_days }}` |
|
|
155
155
|
| `delete-tags` | Newline-separated tags to delete | c,u | for `untag` | |
|
|
@@ -177,10 +177,10 @@ Cleanup notes:
|
|
|
177
177
|
|
|
178
178
|
## Outputs
|
|
179
179
|
|
|
180
|
-
| Output
|
|
181
|
-
|
|
|
182
|
-
| `db-path`
|
|
183
|
-
| `summary-json` | Summary JSON for `cleanup` and `untag` |
|
|
180
|
+
| Output | Description |
|
|
181
|
+
| ------------------- | ------------------------------------------------ |
|
|
182
|
+
| `db-path` | SQLite DB path on the runner |
|
|
183
|
+
| `summary-json-path` | Summary JSON file path for `cleanup` and `untag` |
|
|
184
184
|
|
|
185
185
|
## Artifacts
|
|
186
186
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const _DEFAULT_MAX_DIRECT_TARGET_TAGS =
|
|
2
|
-
const _DEFAULT_MAX_ROOTS_PER_SECTION =
|
|
1
|
+
const _DEFAULT_MAX_DIRECT_TARGET_TAGS = 100;
|
|
2
|
+
const _DEFAULT_MAX_ROOTS_PER_SECTION = 100;
|
|
3
3
|
const _DEFAULT_MAX_TAGS_PER_ROOT = 4;
|
|
4
4
|
export function renderCleanupSummaryMarkdown(summary, options) {
|
|
5
5
|
const maxDirectTargetTags = options.maxDirectTargetTags ?? _DEFAULT_MAX_DIRECT_TARGET_TAGS;
|