diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 692eefd..72061a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,20 +1,15 @@ name: CI -run-name: CI • ${{ github.repository }} • ${{ github.event_name }} • ${{ github.ref_name }} +run-name: CI Workflow • ${{ github.repository }} • ${{ github.event_name }} • ${{ github.ref_name }} permissions: read-all on: workflow_dispatch: inputs: version-tag: - description: 'Version tag to use (e.g., 0.9.7 or v0.9.7) - leave empty to use current commit' + description: 'Version tag (e.g., v0.9.7) - leave empty to use last commit' required: false type: string - publish: - description: 'Publish release to PSGallery' - required: false - type: boolean - default: false push: branches: - main @@ -87,7 +82,6 @@ jobs: contents: write with: version-tag: ${{ inputs['version-tag'] || '' }} - publish: ${{ inputs['publish'] || false }} module-list: ${{ needs.setup.outputs.module-list }} secrets: NUGETAPIKEY_PSGALLERY: ${{ secrets.NUGETAPIKEY_PSGALLERY }} diff --git a/.github/workflows/cron-cleanup-workflow-runs.yml b/.github/workflows/cron-cleanup-workflow-runs.yml index 42d0b17..135e545 100644 --- a/.github/workflows/cron-cleanup-workflow-runs.yml +++ b/.github/workflows/cron-cleanup-workflow-runs.yml @@ -25,25 +25,16 @@ jobs: actions: write contents: read steps: - - name: Delete workflow runs (Pull Requests) + - name: Delete workflow runs (CI workflows) uses: Mattraks/delete-workflow-runs@5bf9a1dac5c4d041c029f0a8370ddf0c5cb5aeb7 #v2.1 with: token: ${{ github.token }} repository: ${{ github.repository }} - delete_workflow_pattern: "CI • ${{ github.repository }} • push • pull_request" + delete_workflow_pattern: "CI" retain_days: ${{ github.event.inputs.retain-days || 2 }} keep_minimum_runs: ${{ github.event.inputs.minimum-runs || 2 }} check_pullrequest_exist: true - - name: Delete workflow runs (Push in main branch) - uses: Mattraks/delete-workflow-runs@5bf9a1dac5c4d041c029f0a8370ddf0c5cb5aeb7 #v2.1 - with: - token: ${{ github.token }} - repository: ${{ github.repository }} - delete_workflow_pattern: "CI • ${{ github.repository }} • push • main" - retain_days: ${{ github.event.inputs.retain-days || 2 }} - keep_minimum_runs: ${{ github.event.inputs.minimum-runs || 2 }} - - name: Delete workflow runs (Scheduled cleanup runs) uses: Mattraks/delete-workflow-runs@5bf9a1dac5c4d041c029f0a8370ddf0c5cb5aeb7 #v2.1 with: