Compare commits
57 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4dbb860504 | ||
|
|
faa6f7258f | ||
|
|
a1e4f8fefc | ||
|
|
1624395091 | ||
|
|
abd519f0d4 | ||
|
|
700a89700f | ||
|
|
9381b73bb2 | ||
|
|
0635864898 | ||
|
|
6596e15e76 | ||
|
|
5d11797e8b | ||
|
|
702690cd9c | ||
|
|
62e3baebb1 | ||
|
|
ec52921222 | ||
|
|
2090f2084d | ||
|
|
92c3e03ab8 | ||
|
|
7fdd4707b6 | ||
|
|
84df5a91df | ||
|
|
4a19791035 | ||
|
|
0d21743b9b | ||
|
|
77c43ffc3b | ||
|
|
68fef8e117 | ||
|
|
f2ce327508 | ||
|
|
7d3e71061e | ||
|
|
df7af9662e | ||
|
|
ad9f1719ed | ||
|
|
d01869c8a3 | ||
|
|
c07742647a | ||
|
|
9bf2496928 | ||
|
|
9a9a0fb950 | ||
|
|
fb051caa45 | ||
|
|
bad3c76feb | ||
|
|
8cb272a564 | ||
|
|
a911a602f8 | ||
|
|
8d4652df2f | ||
|
|
4867518a18 | ||
|
|
5ee16cd087 | ||
|
|
aba303fe53 | ||
|
|
de4c4787bb | ||
|
|
500512803e | ||
|
|
b8611d06e1 | ||
|
|
8fe86a6ec0 | ||
|
|
9425820d2f | ||
|
|
acb0f5384a | ||
|
|
fbf077154f | ||
|
|
0554d11ff3 | ||
|
|
88b8a3c29b | ||
|
|
64c8c8fa23 | ||
|
|
bd7bd8b367 | ||
|
|
5b49678859 | ||
|
|
900d7c2051 | ||
|
|
25786d30b8 | ||
|
|
e4de7761ea | ||
|
|
d1aec54682 | ||
|
|
6c0d602e31 | ||
|
|
9c5e6791c6 | ||
|
|
309e8fee31 | ||
|
|
1952fab71e |
22
.github/workflows/publish-immutable-action.yml
vendored
Normal file
22
.github/workflows/publish-immutable-action.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
name: "Publish Immutable Action Version"
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
- name: Checking out
|
||||
uses: actions/checkout@v4
|
||||
- name: Publish
|
||||
id: publish
|
||||
uses: actions/publish-immutable-action@0.0.1
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
57
README.md
57
README.md
@@ -2,6 +2,25 @@
|
||||
|
||||
This action deletes versions of a package from [GitHub Packages](https://github.com/features/packages). This action will only delete a maximum of 100 versions in one run.
|
||||
|
||||
### Note
|
||||
|
||||
Thank you for your interest in this GitHub action, however, right now we are not taking contributions.
|
||||
|
||||
We continue to focus our resources on strategic areas that help our customers be successful while making developers' lives easier. While GitHub Actions remains a key part of this vision, we are allocating resources towards other areas of Actions and are not taking contributions to this repository at this time. The GitHub public roadmap is the best place to follow along for any updates on features we’re working on and what stage they’re in.
|
||||
|
||||
We are taking the following steps to better direct requests related to GitHub Actions, including:
|
||||
|
||||
1. We will be directing questions and support requests to our [Community Discussions area](https://github.com/orgs/community/discussions/categories/actions)
|
||||
|
||||
2. High Priority bugs can be reported through Community Discussions or you can report these to our support team https://support.github.com/contact/bug-report.
|
||||
|
||||
3. Security Issues should be handled as per our [security.md](security.md)
|
||||
|
||||
We will still provide security updates for this project and fix major breaking changes during this time.
|
||||
|
||||
You are welcome to still raise bugs in this repo.
|
||||
|
||||
|
||||
### What It Can Do
|
||||
|
||||
* Create a retention policy (delete all except n most recent pre-release versions)
|
||||
@@ -17,7 +36,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
|
||||
# Usage
|
||||
|
||||
```yaml
|
||||
- uses: actions/delete-package-versions@v4
|
||||
- uses: actions/delete-package-versions@v5
|
||||
with:
|
||||
# Can be a single package version id, or a comma separated list of package version ids.
|
||||
# Defaults to an empty string.
|
||||
@@ -32,7 +51,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
|
||||
# Required
|
||||
package-name:
|
||||
|
||||
# Type of the package. Can be one of container, maven, npm, nuget, or rubygems.
|
||||
# Type of the package. Can be one of docker (v4 or older), container (v5 or newer), maven, npm, nuget, or rubygems.
|
||||
# Required
|
||||
package-type:
|
||||
|
||||
@@ -118,7 +137,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
|
||||
Delete all pre-release package versions except latest 10
|
||||
|
||||
```yaml
|
||||
- uses: actions/delete-package-versions@v4
|
||||
- uses: actions/delete-package-versions@v5
|
||||
with:
|
||||
package-name: 'test-package'
|
||||
package-type: 'npm'
|
||||
@@ -132,7 +151,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
|
||||
Delete all pre-release package versions except latest 10 from a repo not having access to package
|
||||
|
||||
```yaml
|
||||
- uses: actions/delete-package-versions@v4
|
||||
- uses: actions/delete-package-versions@v5
|
||||
with:
|
||||
owner: 'github'
|
||||
package-name: 'test-package'
|
||||
@@ -153,7 +172,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
|
||||
Delete all untagged versions except latest 10
|
||||
|
||||
```yaml
|
||||
- uses: actions/delete-package-versions@v4
|
||||
- uses: actions/delete-package-versions@v5
|
||||
with:
|
||||
package-name: 'test-package'
|
||||
package-type: 'container'
|
||||
@@ -172,7 +191,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
|
||||
Delete all except latest 3 package versions excluding major versions as per semver
|
||||
|
||||
```yaml
|
||||
- uses: actions/delete-package-versions@v4
|
||||
- uses: actions/delete-package-versions@v5
|
||||
with:
|
||||
package-name: 'test-package'
|
||||
package-type: 'npm'
|
||||
@@ -189,7 +208,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
|
||||
Delete all except latest 3 package versions excluding major versions as per semver from a repo not having access to package
|
||||
|
||||
```yaml
|
||||
- uses: actions/delete-package-versions@v4
|
||||
- uses: actions/delete-package-versions@v5
|
||||
with:
|
||||
owner: 'github'
|
||||
package-name: 'test-package'
|
||||
@@ -212,7 +231,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
|
||||
Delete 3 oldest versions excluding major versions as per semver
|
||||
|
||||
```yaml
|
||||
- uses: actions/delete-package-versions@v4
|
||||
- uses: actions/delete-package-versions@v5
|
||||
with:
|
||||
package-name: 'test-package'
|
||||
package-type: 'npm'
|
||||
@@ -229,7 +248,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
|
||||
Delete 3 oldest versions excluding major versions as per semver from a repo not having access to package
|
||||
|
||||
```yaml
|
||||
- uses: actions/delete-package-versions@v4
|
||||
- uses: actions/delete-package-versions@v5
|
||||
with:
|
||||
owner: 'github'
|
||||
package-name: 'test-package'
|
||||
@@ -250,7 +269,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
|
||||
Delete all except latest 2 versions of a package hosted
|
||||
|
||||
```yaml
|
||||
- uses: actions/delete-package-versions@v4
|
||||
- uses: actions/delete-package-versions@v5
|
||||
with:
|
||||
package-name: 'test-package'
|
||||
package-type: 'npm'
|
||||
@@ -266,7 +285,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
|
||||
Delete all except latest 2 versions of a package hosted from a repo not having access to package
|
||||
|
||||
```yaml
|
||||
- uses: actions/delete-package-versions@v4
|
||||
- uses: actions/delete-package-versions@v5
|
||||
with:
|
||||
owner: 'github'
|
||||
package-name: 'test-package'
|
||||
@@ -286,7 +305,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
|
||||
Delete the oldest 3 version of a package hosted
|
||||
|
||||
```yaml
|
||||
- uses: actions/delete-package-versions@v4
|
||||
- uses: actions/delete-package-versions@v5
|
||||
with:
|
||||
package-name: 'test-package'
|
||||
package-type: 'npm'
|
||||
@@ -302,7 +321,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
|
||||
Delete the oldest 3 version of a package hosted from a repo not having access to package
|
||||
|
||||
```yaml
|
||||
- uses: actions/delete-package-versions@v4
|
||||
- uses: actions/delete-package-versions@v5
|
||||
with:
|
||||
owner: 'github'
|
||||
package-name: 'test-package'
|
||||
@@ -320,7 +339,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
|
||||
__Example__
|
||||
|
||||
```yaml
|
||||
- uses: actions/delete-package-versions@v4
|
||||
- uses: actions/delete-package-versions@v5
|
||||
with:
|
||||
package-name: 'test-package'
|
||||
package-type: 'npm'
|
||||
@@ -331,7 +350,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
|
||||
__Example__
|
||||
|
||||
```yaml
|
||||
- uses: actions/delete-package-versions@v4
|
||||
- uses: actions/delete-package-versions@v5
|
||||
with:
|
||||
owner: 'github'
|
||||
package-name: 'test-package'
|
||||
@@ -350,7 +369,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
|
||||
__Example__
|
||||
|
||||
```yaml
|
||||
- uses: actions/delete-package-versions@v4
|
||||
- uses: actions/delete-package-versions@v5
|
||||
with:
|
||||
package-version-ids: 'MDE0OlBhY2thZ2VWZXJzaW9uOTcyMDY3'
|
||||
package-name: 'test-package'
|
||||
@@ -364,7 +383,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
|
||||
__Example__
|
||||
|
||||
```yaml
|
||||
- uses: actions/delete-package-versions@v4
|
||||
- uses: actions/delete-package-versions@v5
|
||||
with:
|
||||
package-version-ids: 'MDE0OlBhY2thZ2VWZXJzaW9uOTcyMDY3'
|
||||
package-name: 'test-package'
|
||||
@@ -383,7 +402,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
|
||||
__Example__
|
||||
|
||||
```yaml
|
||||
- uses: actions/delete-package-versions@v4
|
||||
- uses: actions/delete-package-versions@v5
|
||||
with:
|
||||
package-version-ids: 'MDE0OlBhY2thZ2VWZXJzaW9uOTcyMDY3, MDE0OlBhY2thZ2VWZXJzaW9uOTcyMzQ5, MDE0OlBhY2thZ2VWZXJzaW9uOTcyMzUw'
|
||||
package-name: 'test-package'
|
||||
@@ -397,7 +416,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
|
||||
__Example__
|
||||
|
||||
```yaml
|
||||
- uses: actions/delete-package-versions@v4
|
||||
- uses: actions/delete-package-versions@v5
|
||||
with:
|
||||
package-version-ids: 'MDE0OlBhY2thZ2VWZXJzaW9uOTcyMDY3, MDE0OlBhY2thZ2VWZXJzaW9uOTcyMzQ5, MDE0OlBhY2thZ2VWZXJzaW9uOTcyMzUw'
|
||||
package-name: 'test-package'
|
||||
|
||||
1150
package-lock.json
generated
1150
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
@@ -31,18 +31,18 @@
|
||||
"rxjs": "^7.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^29.5.10",
|
||||
"@types/node": "^20.11.2",
|
||||
"@typescript-eslint/parser": "^6.19.0",
|
||||
"@types/jest": "^29.5.12",
|
||||
"@types/node": "^20.12.7",
|
||||
"@typescript-eslint/parser": "^6.21.0",
|
||||
"@vercel/ncc": "^0.38.1",
|
||||
"eslint": "^8.55.0",
|
||||
"eslint-plugin-github": "^4.10.1",
|
||||
"eslint-plugin-jest": "^27.6.0",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-plugin-github": "^4.10.2",
|
||||
"eslint-plugin-jest": "^28.2.0",
|
||||
"jest": "^29.7.0",
|
||||
"jest-circus": "^29.7.0",
|
||||
"js-yaml": "^4.1.0",
|
||||
"msw": "^1.3.2",
|
||||
"prettier": "^3.2.2",
|
||||
"ts-jest": "^29.1.1"
|
||||
"prettier": "^3.2.5",
|
||||
"ts-jest": "^29.1.2"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user