Skip to content

Commit

Permalink
ci(repo): fix gh cli inside action
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Dec 3, 2024
1 parent 4a2d0d8 commit 90c0ca0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/cleanup_artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
days_to_keep:
description: "Number of days to keep artifacts"
required: true
default: 30
default: 15
type: number
schedule:
- cron: '0 0 */15 * *' # Runs every 15 days at midnight UTC
- cron: "0 0 */15 * *" # Runs every 15 days at midnight UTC

permissions:
contents: read
Expand All @@ -22,9 +22,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Check GitHub CLI Authentication
run: gh auth status
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run Artifact Cleanup
env:
GH_TOKEN: ${{ secrets.REPO_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_OWNER: ${{ github.repository_owner }}
REPO_NAME: ${{ github.repository }}
DAYS_TO_KEEP: ${{ github.event.inputs.days_to_keep || '15' }}
Expand Down

0 comments on commit 90c0ca0

Please sign in to comment.