Skip to content

digital-ai/package-version-selector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

package-version-selector

This is a github action to select versions of a specific github package. The version can be filtered. The action is implemented to provide a comma seperated string of version ids for the github action actions/delete-package-versions.

Usage:

Example: Select all package versions containing the string "nightly", but keep the latest 5 versions.

- name: "Select versions to delete."
  uses: digital-ai/package-version-selector@master
  id: version-selector
  with:
    owner: digital-ai
    repository: ${{ github.repository }}
    github-token: ${{ secrets.github_token }}
    package: "package-name"
    filter: "nightly"
    keep: 5

- uses: actions/delete-package-versions@v1
  with:
    package-version-ids: ${{ steps.version-selector.outputs.versionids }}
    token: ${{ secrets.github_token }}

Attention: 'owner' is the owner of the repository, not the actor!

About

Select specific package versions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%