From 3649038488bdde14e90ade05a8737c48479d0c40 Mon Sep 17 00:00:00 2001 From: Jan Gleytenhoover Date: Sat, 17 Aug 2024 09:19:27 +0000 Subject: [PATCH 1/3] Update .gitea/workflows/delete-artifacts.yaml --- .gitea/workflows/delete-artifacts.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/delete-artifacts.yaml b/.gitea/workflows/delete-artifacts.yaml index 3788317..e120377 100644 --- a/.gitea/workflows/delete-artifacts.yaml +++ b/.gitea/workflows/delete-artifacts.yaml @@ -1,6 +1,7 @@ name: Remove old artifacts on: + push: schedule: # Every day at 1am - cron: '0 1 * * *' @@ -15,6 +16,7 @@ jobs: uses: c-hive/gha-remove-artifacts@v1 with: age: '1 month' # ' ', e.g. 5 days, 2 years, 90 seconds, parsed by Moment.js + GITHUB_TOKEN: ${{ gitea.TOKEN }} # Optional inputs # skip-tags: true # skip-recent: 5 \ No newline at end of file From 1cae1e1160289aacb13554710eacf86cd0f51d5b Mon Sep 17 00:00:00 2001 From: Jan Gleytenhoover Date: Sat, 17 Aug 2024 09:21:59 +0000 Subject: [PATCH 2/3] Update .gitea/workflows/delete-artifacts.yaml --- .gitea/workflows/delete-artifacts.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/delete-artifacts.yaml b/.gitea/workflows/delete-artifacts.yaml index e120377..2ff59da 100644 --- a/.gitea/workflows/delete-artifacts.yaml +++ b/.gitea/workflows/delete-artifacts.yaml @@ -16,7 +16,7 @@ jobs: uses: c-hive/gha-remove-artifacts@v1 with: age: '1 month' # ' ', e.g. 5 days, 2 years, 90 seconds, parsed by Moment.js - GITHUB_TOKEN: ${{ gitea.TOKEN }} + GITHUB_TOKEN: ${{ secrets.GT_TOKEN }} # Optional inputs # skip-tags: true # skip-recent: 5 \ No newline at end of file From 6c66fbe62400ff8ee2f6197dea205fd0f5c95ff0 Mon Sep 17 00:00:00 2001 From: Jan Gleytenhoover Date: Sat, 17 Aug 2024 09:24:39 +0000 Subject: [PATCH 3/3] Delete .gitea/workflows/delete-artifacts.yaml --- .gitea/workflows/delete-artifacts.yaml | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 .gitea/workflows/delete-artifacts.yaml diff --git a/.gitea/workflows/delete-artifacts.yaml b/.gitea/workflows/delete-artifacts.yaml deleted file mode 100644 index 2ff59da..0000000 --- a/.gitea/workflows/delete-artifacts.yaml +++ /dev/null @@ -1,22 +0,0 @@ -name: Remove old artifacts - -on: - push: - schedule: - # Every day at 1am - - cron: '0 1 * * *' - -jobs: - remove-old-artifacts: - runs-on: ubuntu-latest - timeout-minutes: 10 - - steps: - - name: Remove old artifacts - uses: c-hive/gha-remove-artifacts@v1 - with: - age: '1 month' # ' ', e.g. 5 days, 2 years, 90 seconds, parsed by Moment.js - GITHUB_TOKEN: ${{ secrets.GT_TOKEN }} - # Optional inputs - # skip-tags: true - # skip-recent: 5 \ No newline at end of file