ci: add go.mod #2
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: "Prune" | |
on: | |
schedule: | |
# Runs at 1:22 PM / 13:22 in the UTC timezone which will run at 3:22 AM PST | |
# or 4:22 AM PDT (Daylight Savings). The GitHub Actions documentation | |
# recommends against running scheduled jobs at the top of the hour as they | |
# may be delayed or cancelled due to high loads from other customers' | |
# scheduled jobs. | |
- cron: "22 13 * * *" | |
push: | |
branches: | |
- "**" | |
jobs: | |
packagecloud: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup go | |
uses: WillAbides/setup-go-faster@v1 | |
with: | |
go-version: stable | |
- name: Run packagecloudpruner | |
working-directory: ci/cmd/packagecloudpruner | |
run: >- | |
go run . |