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