From 80d04435da39bd78fc2473ac53d2cd642a57acf5 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Wed, 11 Dec 2024 01:16:03 +0100 Subject: [PATCH 1/3] Update GitHub Actions workflow to support manual triggers and scheduled runs; add new input parameters for debug and verbose output --- .github/workflows/Action-Test.yml | 6 +++++- action.yml | 19 ++++++++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Action-Test.yml b/.github/workflows/Action-Test.yml index 741ea82..cd9ca95 100644 --- a/.github/workflows/Action-Test.yml +++ b/.github/workflows/Action-Test.yml @@ -2,7 +2,11 @@ name: Action-Test run-name: "Action-Test - [${{ 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 * * *' env: GH_TOKEN: ${{ github.token }} diff --git a/action.yml b/action.yml index 039024b..c2338b7 100644 --- a/action.yml +++ b/action.yml @@ -29,6 +29,21 @@ inputs: description: Name of the docs artifact to upload. required: false default: docs + Debug: + description: Enable debug output. + required: false + default: 'false' + Verbose: + description: Enable verbose output. + required: false + default: 'false' + Version: + description: Specifies the version of the GitHub module to be installed. The value must be an exact version. + required: false + Prerelease: + description: Allow prerelease versions if available. + required: false + default: 'false' runs: using: composite @@ -41,9 +56,11 @@ runs: GITHUB_ACTION_INPUT_ModulesOutputPath: ${{ inputs.ModulesOutputPath }} GITHUB_ACTION_INPUT_DocsOutputPath: ${{ inputs.DocsOutputPath }} with: + Verbose: ${{ inputs.Verbose }} + Debug: ${{ inputs.Debug }} Script: | # Build-PSModule - . "${{ github.action_path }}\scripts\main.ps1" -Verbose + . "${{ github.action_path }}\scripts\main.ps1" - name: Upload module artifact uses: actions/upload-artifact@v4 From d5eede7a9e70c4c7625fe8fdba5779c38f2a48ea Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Wed, 11 Dec 2024 01:27:26 +0100 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=A9=B9=20[Update]:=20Add=20new=20inpu?= =?UTF-8?q?t=20parameters=20for=20Debug,=20Verbose,=20Version,=20and=20Pre?= =?UTF-8?q?release=20in=20README=20and=20action.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++++ action.yml | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8f7f911..84d23cd 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,10 @@ During the build process the following steps are performed: | `DocsOutputPath` | Path to the folder where the built docs are outputted. | `false` | `outputs/docs` | | `ModuleArtifactName` | Name of the module artifact to upload. | `false` | `module` | | `DocsArtifactName` | Name of the docs artifact to upload. | `false` | `docs` | +| `Debug` | Enable debug output. | `false` | `'false'` | +| `Verbose` | Enable verbose output. | `false` | `'false'` | +| `Version` | Specifies the version of the GitHub module to be installed. The value must be an exact version. | `false` | | +| `Prerelease` | Allow prerelease versions if available. | `false` | `'false'` | ## Root module diff --git a/action.yml b/action.yml index c2338b7..84a99f0 100644 --- a/action.yml +++ b/action.yml @@ -56,8 +56,10 @@ runs: GITHUB_ACTION_INPUT_ModulesOutputPath: ${{ inputs.ModulesOutputPath }} GITHUB_ACTION_INPUT_DocsOutputPath: ${{ inputs.DocsOutputPath }} with: - Verbose: ${{ inputs.Verbose }} Debug: ${{ inputs.Debug }} + Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} Script: | # Build-PSModule . "${{ github.action_path }}\scripts\main.ps1" From fba4d95ff8fcbcbde75bc22cfd58ffcd1154c8c3 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Wed, 11 Dec 2024 02:20:09 +0100 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=A9=B9=20[Cleanup]:=20Remove=20NuGet?= =?UTF-8?q?=20package=20updates=20from=20Dependabot=20configuration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/dependabot.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b92544a..f57e1e9 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,7 +9,3 @@ updates: directory: / # Location of package manifests schedule: interval: weekly - - package-ecosystem: nuget # See documentation for possible values - directory: / # Location of package manifests - schedule: - interval: weekly