From 7418566b2c96e8664812bd21cc014289edf35b04 Mon Sep 17 00:00:00 2001 From: Ingleiv Johansen Date: Fri, 5 Jul 2024 17:11:06 +0200 Subject: [PATCH] Korrigert ryddejobb (#5336) --- .github/workflows/vaktmesteren.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/vaktmesteren.yml b/.github/workflows/vaktmesteren.yml index 2c91658781a..234a11c2a5e 100644 --- a/.github/workflows/vaktmesteren.yml +++ b/.github/workflows/vaktmesteren.yml @@ -4,18 +4,25 @@ on: schedule: - cron: "0 10 * * 6" workflow_dispatch: - -permissions: - packages: write + inputs: + dry_run: + description: 'Logger simulerte endringer, utfører ingen sletting' + required: false jobs: prune_workflows: name: "Slette gamle workflow runs" runs-on: ubuntu-latest + permissions: + actions: write + contents: read steps: - name: Delete workflow runs uses: Mattraks/delete-workflow-runs@v2 with: token: ${{ github.token }} repository: ${{ github.repository }} + retain_days: 30 keep_minimum_runs: 30 + dry_run: ${{ github.event.inputs.dry_run }} + #delete_workflow_pattern: etterlatte-behandling