get-stale-packages-action

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

get-stale-packages-action

Usage

This action queries repository packages using a token from the ROBOT_TOKEN environment variable and sets the STALE_VERSIONS environment variable with a list of package IDs that were built more than one week ago and should be removed as stale.

It typically should be used by "Clean" workflow (in .github/workflows/clean.yml file) in the "clean-packages" job with the following steps:

- name: Collect stale package versions
  env:
    ROBOT_TOKEN: ${{ secrets.ROBOT_TOKEN }}
  uses: percona-platform/get-stale-packages-action@v1

- name: Clean stale packages
  if: env.STALE_VERSIONS
  uses: percona-platform/delete-package-versions@v1
  with:
    package-version-ids: ${{ env.STALE_VERSIONS }}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址