Liquibase v4.27.0 #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cleanup Master Builds on Release Published | |
on: | |
workflow_dispatch: | |
release: | |
types: [ published ] | |
jobs: | |
delete-package: | |
name: Delete Github Packages for Master/Main | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
packages_to_delete: [org.liquibase.liquibase-core, org.liquibase.liquibase-extension-testing, org.liquibase.liquibase-integration-tests, org.liquibase.liquibase-maven-plugin, org.liquibase.liquibase-cdi-jakarta, org.liquibase.liquibase-cdi, org.liquibase.liquibase] | |
steps: | |
- uses: actions/delete-package-versions@v5 | |
with: | |
# Name of the package. | |
# Defaults to an empty string. | |
# Required if `package-version-ids` input is not given. | |
package-name: ${{ matrix.packages_to_delete }} | |
package-type: maven | |
# The number of latest versions to keep. | |
# This cannot be specified with `num-old-versions-to-delete`. By default, `num-old-versions-to-delete` takes precedence over `min-versions-to-keep`. | |
# When set to 0, all deletable versions will be deleted. | |
# When set greater than 0, all deletable package versions except the specified number will be deleted. | |
min-versions-to-keep: 0 | |
# The package versions to exclude from deletion. | |
# Takes regex for the version name as input. | |
# By default nothing is ignored. | |
ignore-versions: '^DAT-.*-SNAPSHOT$' |