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 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/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 039024b..84a99f0 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,13 @@ runs: GITHUB_ACTION_INPUT_ModulesOutputPath: ${{ inputs.ModulesOutputPath }} GITHUB_ACTION_INPUT_DocsOutputPath: ${{ inputs.DocsOutputPath }} with: + Debug: ${{ inputs.Debug }} + Prerelease: ${{ inputs.Prerelease }} + Verbose: ${{ inputs.Verbose }} + Version: ${{ inputs.Version }} 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