Skip to content

Commit

Permalink
Update remove-old-artifacts.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
palldas committed May 30, 2024
1 parent 883fae1 commit aba9b29
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/remove-old-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,18 @@ jobs:
timeout-minutes: 10

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up GitHub CLI
run: |
echo ${GITHUB_PAT} | gh auth login --with-token
env:
GITHUB_PAT: ${{ secrets.PAT_TOKEN }}

- name: Remove old artifacts
uses: c-hive/[email protected]
with:
age: "5 days" # '<number> <unit>', e.g. 5 days, 2 years, 90 seconds, parsed by Moment.js
# Optional inputs
# skip-tags: true
# skip-recent: 5
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}

0 comments on commit aba9b29

Please sign in to comment.