Some improvements
This commit is contained in:
@@ -1,19 +1,42 @@
|
||||
name: "package cleanup"
|
||||
description: "Cleans up old packages and versions"
|
||||
|
||||
inputs:
|
||||
url:
|
||||
description: "Server URL"
|
||||
required: true
|
||||
names:
|
||||
description: "Names of packages"
|
||||
required: true
|
||||
owner:
|
||||
description: "Owner of the package"
|
||||
required: true
|
||||
types:
|
||||
description: "Types of packages (e.g. Container, PyPi, NuGet)"
|
||||
required: false
|
||||
default: "Container,PyPi,NuGet"
|
||||
api_token:
|
||||
description: "API token for authentication"
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Install set-version tool
|
||||
- name: Download and test package-cleanup tool
|
||||
shell: bash
|
||||
run: |
|
||||
dotnet tool install \
|
||||
--tool-path .tools \
|
||||
ShEdraft.SetVersion \
|
||||
--version 1.0.0 \
|
||||
--add-source https://git.sh-edraft.de/api/packages/sh-edraft.de/nuget/index.json
|
||||
curl -OJ https://git.sh-edraft.de/api/packages/sh-edraft.de/generic/package-cleanup/package-cleanup-linux-x64
|
||||
|
||||
- name: Run set-version
|
||||
# Make executable
|
||||
chmod +x package-cleanup-linux-x64
|
||||
|
||||
- name: Run package-cleanup
|
||||
shell: bash
|
||||
env:
|
||||
URL: ${{ inputs.url }}
|
||||
OWNER: ${{ inputs.owner }}
|
||||
TYPES: ${{ inputs.types }}
|
||||
NAMES: ${{ inputs.names }}
|
||||
API_TOKEN: ${{ inputs.api_token }}
|
||||
run: |
|
||||
./.tools/set-version --suffix dev
|
||||
./package-cleanup-linux-x64
|
||||
|
||||
Reference in New Issue
Block a user