From 92dbf1eb80e3ee996cb4965a25682828fabaefe9 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Wed, 11 Dec 2024 03:35:42 +0100 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Update=20README?= =?UTF-8?q?=20and=20CI=20workflow=20to=20replace=20`VerbosePreference`=20a?= =?UTF-8?q?nd=20`DebugPreference`=20with=20boolean=20`Verbose`=20and=20`De?= =?UTF-8?q?bug`=20options,=20and=20clarify=20version=20specification=20for?= =?UTF-8?q?=20the=20GitHub=20module.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CI.yml | 119 ++++++++++++++++++++---------- .github/workflows/workflow.yml | 127 +++++++++++++++++++++++---------- README.md | 6 +- 3 files changed, 173 insertions(+), 79 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 940f5d20..22189433 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -48,30 +48,30 @@ on: description: Defines what types of tests to skip. Allowed values are 'All', 'SourceCode', 'Module', 'None', 'macOS', 'Windows', 'Linux'. required: false default: None - Version: - type: string - description: The version of the 'GitHub' module to use. Defaults to latest version. + PublishDocs: + type: boolean + description: Whether to publish the documentation using MkDocs and GitHub Pages. required: false - Prerelease: + default: true + Debug: type: boolean - description: Whether to use a prerelease version of the 'GitHub' module. + description: Enable debug output. required: false default: false - PublishDocs: + Verbose: type: boolean - description: Whether to publish the documentation using MkDocs and GitHub Pages. + description: Enable verbose output. required: false - default: true - VerbosePreference: + default: false + Version: type: string - description: "The preference for verbose output. Allowed values: 'SilentlyContinue', 'Stop', 'Continue', 'Inquire', 'Break', 'Ignore','Suspend'." + description: Specifies the version of the GitHub module to be installed. The value must be an exact version. required: false - default: 'SilentlyContinue' - DebugPreference: - type: string - description: "The preference for debug output. Allowed values: 'SilentlyContinue', 'Stop', 'Continue', 'Inquire', 'Break', 'Ignore','Suspend'." + Prerelease: + type: boolean + description: Whether to use a prerelease version of the 'GitHub' module. required: false - default: 'SilentlyContinue' + default: false env: GITHUB_TOKEN: ${{ github.token }} # Used for GitHub CLI authentication @@ -97,8 +97,10 @@ jobs: - name: Initialize environment uses: PSModule/Initialize-PSModule@v1 with: - Version: ${{ inputs.Version }} + Debug: ${{ inputs.Debug }} Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Test source code id: test @@ -107,8 +109,10 @@ jobs: Name: ${{ inputs.Name }} Path: ${{ inputs.Path }} TestType: SourceCode - VerbosePreference: ${{ inputs.VerbosePreference }} - DebugPreference: ${{ inputs.DebugPreference }} + Debug: ${{ inputs.Debug }} + Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} TestSourceCode-pwsh-macos-latest: name: Test source code (pwsh, macos-latest) @@ -123,8 +127,10 @@ jobs: - name: Initialize environment uses: PSModule/Initialize-PSModule@v1 with: - Version: ${{ inputs.Version }} + Debug: ${{ inputs.Debug }} Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Test source code id: test @@ -133,8 +139,10 @@ jobs: Name: ${{ inputs.Name }} Path: ${{ inputs.Path }} TestType: SourceCode - VerbosePreference: ${{ inputs.VerbosePreference }} - DebugPreference: ${{ inputs.DebugPreference }} + Debug: ${{ inputs.Debug }} + Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} TestSourceCode-pwsh-windows-latest: name: Test source code (pwsh, windows-latest) @@ -149,8 +157,10 @@ jobs: - name: Initialize environment uses: PSModule/Initialize-PSModule@v1 with: - Version: ${{ inputs.Version }} + Debug: ${{ inputs.Debug }} Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Test source code id: test @@ -159,8 +169,10 @@ jobs: Name: ${{ inputs.Name }} Path: ${{ inputs.Path }} TestType: SourceCode - VerbosePreference: ${{ inputs.VerbosePreference }} - DebugPreference: ${{ inputs.DebugPreference }} + Debug: ${{ inputs.Debug }} + Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} BuildModule: name: Build module @@ -177,9 +189,10 @@ jobs: - name: Initialize environment uses: PSModule/Initialize-PSModule@v1 with: - Verbose: true - Version: ${{ inputs.Version }} + Debug: ${{ inputs.Debug }} Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Build module uses: PSModule/Build-PSModule@v2 @@ -188,6 +201,10 @@ jobs: Path: ${{ inputs.Path }} ModulesOutputPath: ${{ inputs.ModulesOutputPath }} DocsOutputPath: ${{ inputs.DocsOutputPath }} + Debug: ${{ inputs.Debug }} + Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} # This is necessary as there is no way to get output from a matrix job TestModule-pwsh-ubuntu-latest: @@ -204,8 +221,10 @@ jobs: - name: Initialize environment uses: PSModule/Initialize-PSModule@v1 with: - Version: ${{ inputs.Version }} + Debug: ${{ inputs.Debug }} Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Download module artifact uses: actions/download-artifact@v4 @@ -221,8 +240,10 @@ jobs: Name: ${{ inputs.Name }} Path: ${{ inputs.ModulesOutputPath }} TestType: Module - VerbosePreference: ${{ inputs.VerbosePreference }} - DebugPreference: ${{ inputs.DebugPreference }} + Debug: ${{ inputs.Debug }} + Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Status shell: pwsh @@ -248,8 +269,10 @@ jobs: - name: Initialize environment uses: PSModule/Initialize-PSModule@v1 with: - Version: ${{ inputs.Version }} + Debug: ${{ inputs.Debug }} Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Download module artifact uses: actions/download-artifact@v4 @@ -265,8 +288,10 @@ jobs: Name: ${{ inputs.Name }} Path: ${{ inputs.ModulesOutputPath }} TestType: Module - VerbosePreference: ${{ inputs.VerbosePreference }} - DebugPreference: ${{ inputs.DebugPreference }} + Debug: ${{ inputs.Debug }} + Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Status shell: pwsh @@ -292,8 +317,10 @@ jobs: - name: Initialize environment uses: PSModule/Initialize-PSModule@v1 with: - Version: ${{ inputs.Version }} + Debug: ${{ inputs.Debug }} Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Download module artifact uses: actions/download-artifact@v4 @@ -309,8 +336,10 @@ jobs: Name: ${{ inputs.Name }} Path: ${{ inputs.ModulesOutputPath }} TestType: Module - VerbosePreference: ${{ inputs.VerbosePreference }} - DebugPreference: ${{ inputs.DebugPreference }} + Debug: ${{ inputs.Debug }} + Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Status shell: pwsh @@ -337,8 +366,10 @@ jobs: - name: Initialize environment uses: PSModule/Initialize-PSModule@v1 with: - Version: ${{ inputs.Version }} + Debug: ${{ inputs.Debug }} Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Download module artifact uses: actions/download-artifact@v4 @@ -349,6 +380,10 @@ jobs: - name: Summerize tests uses: PSModule/GitHub-Script@v1 with: + Debug: ${{ inputs.Debug }} + Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} Script: | LogGroup -Name 'Test analysis' { @@ -491,8 +526,10 @@ jobs: - name: Initialize environment uses: PSModule/Initialize-PSModule@v1 with: - Version: ${{ inputs.Version }} + Debug: ${{ inputs.Debug }} Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Download docs artifact uses: actions/download-artifact@v4 @@ -516,6 +553,10 @@ jobs: - name: Structure site uses: PSModule/GitHub-Script@v1 with: + Debug: ${{ inputs.Debug }} + Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} Script: | $moduleName = [string]::IsNullOrEmpty('${{ inputs.Name }}') ? $env:GITHUB_REPOSITORY_NAME : '${{ inputs.Name }}' $ModuleSourcePath = Join-Path $PWD -ChildPath '${{ inputs.Path }}' @@ -572,6 +613,10 @@ jobs: uses: PSModule/GitHub-Script@v1 with: WorkingDirectory: ${{ inputs.SiteOutputPath }} + Debug: ${{ inputs.Debug }} + Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} Script: | LogGroup 'Build docs - mkdocs build - content' { Show-FileContent -Path mkdocs.yml diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 6792fb41..4f0cf5f0 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -53,30 +53,30 @@ on: description: Whether to test the process. required: false default: false - Version: - type: string - description: The version of the 'Utilities' module to process. + PublishDocs: + type: boolean + description: Whether to publish the documentation using MkDocs and GitHub Pages. required: false - Prerelease: + default: true + Debug: type: boolean - description: Whether the version is a prerelease. + description: Enable debug output. required: false default: false - PublishDocs: + Verbose: type: boolean - description: Whether to publish the documentation using MkDocs and GitHub Pages. + description: Enable verbose output. required: false - default: true - VerbosePreference: + default: false + Version: type: string - description: "The preference for verbose output. Allowed values: 'SilentlyContinue', 'Stop', 'Continue', 'Inquire', 'Break', 'Ignore','Suspend'." + description: Specifies the version of the GitHub module to be installed. The value must be an exact version. required: false - default: 'SilentlyContinue' - DebugPreference: - type: string - description: "The preference for debug output. Allowed values: 'SilentlyContinue', 'Stop', 'Continue', 'Inquire', 'Break', 'Ignore','Suspend'." + Prerelease: + type: boolean + description: Whether to use a prerelease version of the 'GitHub' module. required: false - default: 'SilentlyContinue' + default: false env: GITHUB_TOKEN: ${{ github.token }} # Used for GitHub CLI authentication @@ -104,8 +104,10 @@ jobs: - name: Initialize environment uses: PSModule/Initialize-PSModule@v1 with: - Version: ${{ inputs.Version }} + Debug: ${{ inputs.Debug }} Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Test source code id: test @@ -114,8 +116,10 @@ jobs: Name: ${{ inputs.Name }} Path: ${{ inputs.Path }} TestType: SourceCode - VerbosePreference: ${{ inputs.VerbosePreference }} - DebugPreference: ${{ inputs.DebugPreference }} + Debug: ${{ inputs.Debug }} + Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} TestSourceCode-pwsh-macos-latest: name: Test source code (pwsh, macos-latest) @@ -130,8 +134,10 @@ jobs: - name: Initialize environment uses: PSModule/Initialize-PSModule@v1 with: - Version: ${{ inputs.Version }} + Debug: ${{ inputs.Debug }} Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Test source code id: test @@ -140,8 +146,10 @@ jobs: Name: ${{ inputs.Name }} Path: ${{ inputs.Path }} TestType: SourceCode - VerbosePreference: ${{ inputs.VerbosePreference }} - DebugPreference: ${{ inputs.DebugPreference }} + Debug: ${{ inputs.Debug }} + Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} TestSourceCode-pwsh-windows-latest: name: Test source code (pwsh, windows-latest) @@ -156,8 +164,10 @@ jobs: - name: Initialize environment uses: PSModule/Initialize-PSModule@v1 with: - Version: ${{ inputs.Version }} + Debug: ${{ inputs.Debug }} Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Test source code id: test @@ -166,8 +176,10 @@ jobs: Name: ${{ inputs.Name }} Path: ${{ inputs.Path }} TestType: SourceCode - VerbosePreference: ${{ inputs.VerbosePreference }} - DebugPreference: ${{ inputs.DebugPreference }} + Debug: ${{ inputs.Debug }} + Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} BuildModule: name: Build module @@ -184,9 +196,10 @@ jobs: - name: Initialize environment uses: PSModule/Initialize-PSModule@v1 with: - Verbose: true - Version: ${{ inputs.Version }} + Debug: ${{ inputs.Debug }} Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Build module uses: PSModule/Build-PSModule@v2 @@ -195,6 +208,10 @@ jobs: Path: ${{ inputs.Path }} ModulesOutputPath: ${{ inputs.ModulesOutputPath }} DocsOutputPath: ${{ inputs.DocsOutputPath }} + Debug: ${{ inputs.Debug }} + Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} #This is necessary as there is no way to get output from a matrix job TestModule-pwsh-ubuntu-latest: @@ -211,8 +228,10 @@ jobs: - name: Initialize environment uses: PSModule/Initialize-PSModule@v1 with: - Version: ${{ inputs.Version }} + Debug: ${{ inputs.Debug }} Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Download module artifact uses: actions/download-artifact@v4 @@ -228,8 +247,10 @@ jobs: Name: ${{ inputs.Name }} Path: ${{ inputs.ModulesOutputPath }} TestType: Module - VerbosePreference: ${{ inputs.VerbosePreference }} - DebugPreference: ${{ inputs.DebugPreference }} + Debug: ${{ inputs.Debug }} + Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Status shell: pwsh @@ -255,8 +276,10 @@ jobs: - name: Initialize environment uses: PSModule/Initialize-PSModule@v1 with: - Version: ${{ inputs.Version }} + Debug: ${{ inputs.Debug }} Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Download module artifact uses: actions/download-artifact@v4 @@ -272,8 +295,10 @@ jobs: Name: ${{ inputs.Name }} Path: ${{ inputs.ModulesOutputPath }} TestType: Module - VerbosePreference: ${{ inputs.VerbosePreference }} - DebugPreference: ${{ inputs.DebugPreference }} + Debug: ${{ inputs.Debug }} + Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Status shell: pwsh @@ -299,8 +324,10 @@ jobs: - name: Initialize environment uses: PSModule/Initialize-PSModule@v1 with: - Version: ${{ inputs.Version }} + Debug: ${{ inputs.Debug }} Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Download module artifact uses: actions/download-artifact@v4 @@ -316,8 +343,10 @@ jobs: Name: ${{ inputs.Name }} Path: ${{ inputs.ModulesOutputPath }} TestType: Module - VerbosePreference: ${{ inputs.VerbosePreference }} - DebugPreference: ${{ inputs.DebugPreference }} + Debug: ${{ inputs.Debug }} + Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Status shell: pwsh @@ -344,8 +373,10 @@ jobs: - name: Initialize environment uses: PSModule/Initialize-PSModule@v1 with: - Version: ${{ inputs.Version }} + Debug: ${{ inputs.Debug }} Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Download module artifact uses: actions/download-artifact@v4 @@ -356,6 +387,10 @@ jobs: - name: Summerize tests uses: PSModule/GitHub-Script@v1 with: + Debug: ${{ inputs.Debug }} + Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} Script: | LogGroup -Name 'Test analysis' { @@ -471,8 +506,10 @@ jobs: - name: Initialize environment uses: PSModule/Initialize-PSModule@v1 with: - Version: ${{ inputs.Version }} + Debug: ${{ inputs.Debug }} Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Download docs artifact uses: actions/download-artifact@v4 @@ -517,8 +554,10 @@ jobs: - name: Initialize environment uses: PSModule/Initialize-PSModule@v1 with: - Version: ${{ inputs.Version }} + Debug: ${{ inputs.Debug }} Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Download docs artifact uses: actions/download-artifact@v4 @@ -542,6 +581,10 @@ jobs: - name: Structure site uses: PSModule/GitHub-Script@v1 with: + Debug: ${{ inputs.Debug }} + Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} Script: | $moduleName = [string]::IsNullOrEmpty('${{ inputs.Name }}') ? $env:GITHUB_REPOSITORY_NAME : '${{ inputs.Name }}' $ModuleSourcePath = Join-Path $PWD -ChildPath '${{ inputs.Path }}' @@ -623,8 +666,10 @@ jobs: - name: Initialize environment uses: PSModule/Initialize-PSModule@v1 with: - Version: ${{ inputs.Version }} + Debug: ${{ inputs.Debug }} Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} - name: Download module artifact uses: actions/download-artifact@v4 @@ -639,6 +684,10 @@ jobs: ModulePath: ${{ inputs.ModulesOutputPath }} APIKey: ${{ secrets.APIKEY }} WhatIf: ${{ inputs.TestProcess }} + Debug: ${{ inputs.Debug }} + Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} PublishSite: name: Publish documentation diff --git a/README.md b/README.md index 2cc5ca3e..9eeab7fe 100644 --- a/README.md +++ b/README.md @@ -77,10 +77,10 @@ jobs: | `SiteOutputPath` | `string` | The path to the output directory for the site. | `false` | `outputs/site` | | `SkipTests` | `string` | Defines what types of tests to skip. Allowed values are 'All', 'SourceCode', 'Module', 'None', 'macOS', 'Windows', 'Linux'. | `false` | `None` | | `TestProcess` | `boolean` | Whether to test the process. | `false` | `false` | -| `Version` | `string` | The version of the 'GitHub' module to use. Defaults to latest version. | `false` | N/A | +| `Version` | `string` | Specifies the version of the GitHub module to be installed. The value must be an exact version. | `false` | N/A | | `Prerelease` | `boolean` | Whether to use a prerelease version of the 'GitHub' module. | `false` | `false` | -| `VerbosePreference` | `string` | The preference for verbose output. Allowed values: 'SilentlyContinue', 'Stop', 'Continue', 'Inquire', 'Break', 'Ignore','Suspend'. | `false` | `SilentlyContinue` | -| `DebugPreference` | `string` | The preference for debug output. Allowed values: 'SilentlyContinue', 'Stop', 'Continue', 'Inquire', 'Break', 'Ignore','Suspend'. | `false` | `SilentlyContinue` | +| `Debug` | `boolean` | Whether to enable debug output. | `false` | `false` | +| `Verbose` | `boolean` | Whether to enable verbose output. | `false` | `false` | ### Secrets From bcdf66c79fbeffde67cdf4da4984fc4987f80491 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Wed, 11 Dec 2024 03:38:15 +0100 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Update=20CI=20wor?= =?UTF-8?q?kflows=20to=20support=20manual=20triggers=20and=20scheduled=20r?= =?UTF-8?q?uns?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Workflow-Test-Default-CI.yml | 6 +++++- .github/workflows/Workflow-Test-Default.yml | 6 +++++- .github/workflows/Workflow-Test-WithManifest-CI.yml | 6 +++++- .github/workflows/Workflow-Test-WithManifest.yml | 6 +++++- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Workflow-Test-Default-CI.yml b/.github/workflows/Workflow-Test-Default-CI.yml index 8447d5ae..4828c258 100644 --- a/.github/workflows/Workflow-Test-Default-CI.yml +++ b/.github/workflows/Workflow-Test-Default-CI.yml @@ -2,7 +2,11 @@ name: Workflow-Test CI [Default] run-name: "Workflow-Test CI [Default] - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}" -on: [pull_request] +on: + workflow_dispatch: + pull_request: + schedule: + - cron: '0 0 * * *' concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/Workflow-Test-Default.yml b/.github/workflows/Workflow-Test-Default.yml index ffdec57c..2c72d2bb 100644 --- a/.github/workflows/Workflow-Test-Default.yml +++ b/.github/workflows/Workflow-Test-Default.yml @@ -2,7 +2,11 @@ name: Workflow-Test [Default] run-name: "Workflow-Test [Default] - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}" -on: [pull_request] +on: + workflow_dispatch: + pull_request: + schedule: + - cron: '0 0 * * *' concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/Workflow-Test-WithManifest-CI.yml b/.github/workflows/Workflow-Test-WithManifest-CI.yml index 9cdfab6c..e998ec66 100644 --- a/.github/workflows/Workflow-Test-WithManifest-CI.yml +++ b/.github/workflows/Workflow-Test-WithManifest-CI.yml @@ -2,7 +2,11 @@ name: Workflow-Test CI [WithManifest] run-name: "Workflow-Test CI [WithManifest] - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}" -on: [pull_request] +on: + workflow_dispatch: + pull_request: + schedule: + - cron: '0 0 * * *' concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/Workflow-Test-WithManifest.yml b/.github/workflows/Workflow-Test-WithManifest.yml index 1e2f1af8..ea4d4fdf 100644 --- a/.github/workflows/Workflow-Test-WithManifest.yml +++ b/.github/workflows/Workflow-Test-WithManifest.yml @@ -2,7 +2,11 @@ name: Workflow-Test [WithManifest] run-name: "Workflow-Test [WithManifest] - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}" -on: [pull_request] +on: + workflow_dispatch: + pull_request: + schedule: + - cron: '0 0 * * *' concurrency: group: ${{ github.workflow }}-${{ github.ref }} From ec41bf4d4a63cf956bff06728b869cc0f91e0f79 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Wed, 11 Dec 2024 03:47:34 +0100 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Remove=20unnecess?= =?UTF-8?q?ary=20output=20definitions=20from=20CI=20workflows=20for=20macO?= =?UTF-8?q?S=20and=20Windows=20jobs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CI.yml | 4 ---- .github/workflows/workflow.yml | 4 ---- 2 files changed, 8 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 22189433..3a10f8e6 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -118,8 +118,6 @@ jobs: name: Test source code (pwsh, macos-latest) if: ${{ !(contains(inputs.SkipTests, 'All') || contains(inputs.SkipTests, 'SourceCode' ) || contains(inputs.SkipTests, 'macOS')) }} runs-on: macos-latest - outputs: - passed: ${{ steps.test.outputs.passed }} steps: - name: Checkout Code uses: actions/checkout@v4 @@ -148,8 +146,6 @@ jobs: name: Test source code (pwsh, windows-latest) if: ${{ !(contains(inputs.SkipTests, 'All' ) || contains(inputs.SkipTests, 'SourceCode' ) || contains(inputs.SkipTests, 'Windows')) }} runs-on: windows-latest - outputs: - passed: ${{ steps.test.outputs.passed }} steps: - name: Checkout Code uses: actions/checkout@v4 diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 4f0cf5f0..d60beee3 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -125,8 +125,6 @@ jobs: name: Test source code (pwsh, macos-latest) if: ${{ !(contains(inputs.SkipTests, 'All') || contains(inputs.SkipTests, 'SourceCode' ) || contains(inputs.SkipTests, 'macOS')) }} runs-on: macos-latest - outputs: - passed: ${{ steps.test.outputs.passed }} steps: - name: Checkout Code uses: actions/checkout@v4 @@ -155,8 +153,6 @@ jobs: name: Test source code (pwsh, windows-latest) if: ${{ !(contains(inputs.SkipTests, 'All' ) || contains(inputs.SkipTests, 'SourceCode' ) || contains(inputs.SkipTests, 'Windows')) }} runs-on: windows-latest - outputs: - passed: ${{ steps.test.outputs.passed }} steps: - name: Checkout Code uses: actions/checkout@v4