Skip to content

Commit 48fbb00

Browse files
🩹 [Patch]: Cleanup logging (#84)
## Description This pull request includes several changes to configuration files and documentation. The primary updates involve enhancements to the GitHub Actions workflow, modifications to the Dependabot configuration, and additions to the `action.yml` and `README.md` files to support new input parameters. Enhancements to GitHub Actions workflow: * [`.github/workflows/Action-Test.yml`](diffhunk://#diff-a12ae5c885b0673c0ff6f70c2670886907590d624626e07da4c52e01aeaf56a4L5-R9): Added `workflow_dispatch` and `schedule` triggers to the GitHub Actions workflow. Modifications to Dependabot configuration: * [`.github/dependabot.yml`](diffhunk://#diff-dd4fbda47e51f1e35defb9275a9cd9c212ecde0b870cba89ddaaae65c5f3cd28L12-L15): Removed the `nuget` package-ecosystem configuration. Additions to support new input parameters: * [`action.yml`](diffhunk://#diff-1243c5424efaaa19bd8e813c5e6f6da46316e63761421b3e5f5c8ced9a36e6b6R32-R46): Added new input parameters `Debug`, `Verbose`, `Version`, and `Prerelease` to the action configuration. Updated the `runs` section to include these new inputs. [[1]](diffhunk://#diff-1243c5424efaaa19bd8e813c5e6f6da46316e63761421b3e5f5c8ced9a36e6b6R32-R46) [[2]](diffhunk://#diff-1243c5424efaaa19bd8e813c5e6f6da46316e63761421b3e5f5c8ced9a36e6b6R59-R65) * [`README.md`](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R35-R38): Documented the new input parameters `Debug`, `Verbose`, `Version`, and `Prerelease` in the table of build process steps. ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [ ] 🪲 [Fix] - [x] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent 066fc04 commit 48fbb00

File tree

4 files changed

+29
-6
lines changed

4 files changed

+29
-6
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,3 @@ updates:
99
directory: / # Location of package manifests
1010
schedule:
1111
interval: weekly
12-
- package-ecosystem: nuget # See documentation for possible values
13-
directory: / # Location of package manifests
14-
schedule:
15-
interval: weekly

.github/workflows/Action-Test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ name: Action-Test
22

33
run-name: "Action-Test - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
44

5-
on: [pull_request]
5+
on:
6+
workflow_dispatch:
7+
pull_request:
8+
schedule:
9+
- cron: '0 0 * * *'
610

711
env:
812
GH_TOKEN: ${{ github.token }}

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ During the build process the following steps are performed:
3232
| `DocsOutputPath` | Path to the folder where the built docs are outputted. | `false` | `outputs/docs` |
3333
| `ModuleArtifactName` | Name of the module artifact to upload. | `false` | `module` |
3434
| `DocsArtifactName` | Name of the docs artifact to upload. | `false` | `docs` |
35+
| `Debug` | Enable debug output. | `false` | `'false'` |
36+
| `Verbose` | Enable verbose output. | `false` | `'false'` |
37+
| `Version` | Specifies the version of the GitHub module to be installed. The value must be an exact version. | `false` | |
38+
| `Prerelease` | Allow prerelease versions if available. | `false` | `'false'` |
3539

3640
## Root module
3741

action.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,21 @@ inputs:
2929
description: Name of the docs artifact to upload.
3030
required: false
3131
default: docs
32+
Debug:
33+
description: Enable debug output.
34+
required: false
35+
default: 'false'
36+
Verbose:
37+
description: Enable verbose output.
38+
required: false
39+
default: 'false'
40+
Version:
41+
description: Specifies the version of the GitHub module to be installed. The value must be an exact version.
42+
required: false
43+
Prerelease:
44+
description: Allow prerelease versions if available.
45+
required: false
46+
default: 'false'
3247

3348
runs:
3449
using: composite
@@ -41,9 +56,13 @@ runs:
4156
GITHUB_ACTION_INPUT_ModulesOutputPath: ${{ inputs.ModulesOutputPath }}
4257
GITHUB_ACTION_INPUT_DocsOutputPath: ${{ inputs.DocsOutputPath }}
4358
with:
59+
Debug: ${{ inputs.Debug }}
60+
Prerelease: ${{ inputs.Prerelease }}
61+
Verbose: ${{ inputs.Verbose }}
62+
Version: ${{ inputs.Version }}
4463
Script: |
4564
# Build-PSModule
46-
. "${{ github.action_path }}\scripts\main.ps1" -Verbose
65+
. "${{ github.action_path }}\scripts\main.ps1"
4766
4867
- name: Upload module artifact
4968
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)