Created
September 13, 2022 14:45
-
-
Save malantin/90bf37ae248d22b3a680f2d51e9c644d to your computer and use it in GitHub Desktop.
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: Remove old artifacts | |
on: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
inputs: | |
age: | |
description: 'Age in days' | |
required: true | |
default: '7' | |
jobs: | |
remove-artifacts: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Remove artifacts | |
uses: c-hive/[email protected] | |
with: | |
# Artifacts older than this will be deleted (e.g. "2 months", "1 day"). Parsed by moment. | |
age: "${{ inputs.age }} days" | |
# Access token for the repository, available under the same name in secrets. | |
GITHUB_TOKEN: ${{ github.token }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment