mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-08 18:58:07 +00:00
Merge branch 'main' into develop
This commit is contained in:
7
.github/workflows/cleanup.yml
vendored
7
.github/workflows/cleanup.yml
vendored
@@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
name: "Chore - Prune old builds"
|
name: "Chore - Prune old builds"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
actions: write
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * *'
|
- cron: '0 0 * * *'
|
||||||
@@ -14,7 +17,7 @@ jobs:
|
|||||||
- name: Prune cancelled/skipped runs
|
- name: Prune cancelled/skipped runs
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GH_ACTIONS_PERSONAL_ACCESS_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
const cancelled = await github.rest.actions.listWorkflowRunsForRepo({
|
const cancelled = await github.rest.actions.listWorkflowRunsForRepo({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
@@ -44,7 +47,7 @@ jobs:
|
|||||||
- name: Prune runs older than 3 days
|
- name: Prune runs older than 3 days
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GH_ACTIONS_PERSONAL_ACCESS_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
const days_to_expiration = 3;
|
const days_to_expiration = 3;
|
||||||
const ms_in_day = 86400000;
|
const ms_in_day = 86400000;
|
||||||
|
|||||||
Reference in New Issue
Block a user