From 00e3235054b99f8aa49fa4cdb01dbd8edf993807 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Mon, 2 Jun 2025 03:50:14 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Simplify=20Build-?= =?UTF-8?q?Module=20workflow=20by=20removing=20unused=20inputs=20and=20ens?= =?UTF-8?q?uring=20GH=5FTOKEN=20is=20set?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Build-Module.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Build-Module.yml b/.github/workflows/Build-Module.yml index 23d4ef3b..ef210627 100644 --- a/.github/workflows/Build-Module.yml +++ b/.github/workflows/Build-Module.yml @@ -40,6 +40,8 @@ jobs: Build-Module: name: Build-Module runs-on: ubuntu-latest + env: + GH_TOKEN: ${{ github.token }} steps: - name: Checkout Code uses: actions/checkout@v4 @@ -48,8 +50,4 @@ jobs: uses: PSModule/Build-PSModule@v4 with: Name: ${{ inputs.Name }} - Debug: ${{ inputs.Debug }} - Prerelease: ${{ inputs.Prerelease }} - Verbose: ${{ inputs.Verbose }} - Version: ${{ inputs.Version }} WorkingDirectory: ${{ inputs.WorkingDirectory }} From b713b0f1f85ef608dc2cfa602356d6446aa39a12 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Mon, 2 Jun 2025 03:52:57 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Remove=20unused?= =?UTF-8?q?=20inputs=20from=20Build-Module=20workflow=20and=20update=20CI?= =?UTF-8?q?=20workflow=20to=20reflect=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Build-Module.yml | 22 ++++------------------ .github/workflows/CI.yml | 4 ---- .github/workflows/workflow.yml | 4 ---- 3 files changed, 4 insertions(+), 26 deletions(-) diff --git a/.github/workflows/Build-Module.yml b/.github/workflows/Build-Module.yml index ef210627..3dc37fe3 100644 --- a/.github/workflows/Build-Module.yml +++ b/.github/workflows/Build-Module.yml @@ -7,26 +7,11 @@ on: type: string description: The name of the module to process. Scripts default to the repository name if nothing is specified. required: false - Debug: - type: boolean - description: Enable debug output. - required: false - default: false - Verbose: - type: boolean - description: Enable verbose output. - required: false - default: false - Version: + ArtifactName: type: string - description: Specifies the version of the GitHub module to be installed. The value must be an exact version. - required: false - default: '' - Prerelease: - type: boolean - description: Whether to use a prerelease version of the 'GitHub' module. + description: Name of the artifact to upload. required: false - default: false + default: module WorkingDirectory: type: string description: The working directory where the script will run from. @@ -50,4 +35,5 @@ jobs: uses: PSModule/Build-PSModule@v4 with: Name: ${{ inputs.Name }} + ArtifactName: ${{ inputs.ArtifactName }} WorkingDirectory: ${{ inputs.WorkingDirectory }} diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1227576c..30ab8859 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -87,10 +87,6 @@ jobs: - Get-Settings with: Name: ${{ fromJson(needs.Get-Settings.outputs.Settings).Name }} - Debug: ${{ inputs.Debug }} - Prerelease: ${{ inputs.Prerelease }} - Verbose: ${{ inputs.Verbose }} - Version: ${{ inputs.Version }} WorkingDirectory: ${{ inputs.WorkingDirectory }} Build-Docs: diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index dc94bd8e..c2f7ac8c 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -89,10 +89,6 @@ jobs: - Get-Settings with: Name: ${{ fromJson(needs.Get-Settings.outputs.Settings).Name }} - Debug: ${{ inputs.Debug }} - Prerelease: ${{ inputs.Prerelease }} - Verbose: ${{ inputs.Verbose }} - Version: ${{ inputs.Version }} WorkingDirectory: ${{ inputs.WorkingDirectory }} Build-Docs: