Skip to content

Commit 34c013c

Browse files
🩹 [Patch]: Bump Process-PSModule to v5 (#533)
This pull request updates and simplifies the repository's GitHub workflow and configuration files, focusing on workflow consolidation, dependency management, and configuration cleanup. The main changes include merging the nightly and pull request workflows, updating workflow versions, improving Dependabot labeling, and removing unused configuration files. **Workflow consolidation and updates:** * Combined the nightly scheduled workflow and the pull request workflow into a single `.github/workflows/Process-PSModule.yml` file, which now runs on both a nightly schedule and on pull requests to `main`. The workflow was also updated to use `workflow.yml@v5` and to inherit secrets, simplifying maintenance. [[1]](diffhunk://#diff-b4dbaea65a86cef96799e9783b18b31e96a456d476805312f52919d45a060603L3-R6) [[2]](diffhunk://#diff-b4dbaea65a86cef96799e9783b18b31e96a456d476805312f52919d45a060603L29-R31) [[3]](diffhunk://#diff-ae7e03d0a8740974e1848d0dc7322a8b3f3f4898b37bfd5b226dff69096bb8dfL1-L24) * Removed the separate `.github/workflows/Nightly-Run.yml` and `.github/workflows/Linter.yml` files, consolidating workflow logic and eliminating redundant jobs. [[1]](diffhunk://#diff-ae7e03d0a8740974e1848d0dc7322a8b3f3f4898b37bfd5b226dff69096bb8dfL1-L24) [[2]](diffhunk://#diff-482e65806ed9e4a7320f14964764086b91fed4a28d12e4efde1776472e147e79L1-L33) **Dependency management:** * Updated `.github/dependabot.yml` to automatically add `dependencies` and `github-actions` labels to PRs created for GitHub Actions updates, improving visibility and triage of dependency updates. **Configuration cleanup:** * Removed the `.github/linters/.jscpd.json` file, indicating that JSCPD duplicate code detection is no longer configured or required in this repository. * Added a new `.github/PSModule.yml` configuration file to set a code coverage target for tests, supporting the Process-PSModule workflow.
1 parent 01e77fd commit 34c013c

File tree

6 files changed

+12
-84
lines changed

6 files changed

+12
-84
lines changed

.github/PSModule.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is used to configure the Process-PSModule workflow.
2+
# Reference:
3+
# - https://github.com/PSModule/Process-PSModule?tab=readme-ov-file#configuration
4+
15
Test:
26
CodeCoverage:
37
PercentTarget: 50

.github/dependabot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ version: 2
77
updates:
88
- package-ecosystem: github-actions # See documentation for possible values
99
directory: / # Location of package manifests
10+
labels:
11+
- dependencies
12+
- github-actions
1013
schedule:
1114
interval: weekly

.github/linters/.jscpd.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/Linter.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/Nightly-Run.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/Process-PSModule.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Process-PSModule
22

3-
run-name: "Process-PSModule - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
4-
53
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * *'
67
pull_request:
78
branches:
89
- main
@@ -26,13 +27,5 @@ permissions:
2627

2728
jobs:
2829
Process-PSModule:
29-
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v4
30-
secrets:
31-
APIKey: ${{ secrets.APIKey }}
32-
TEST_APP_ENT_CLIENT_ID: ${{ secrets.TEST_APP_ENT_CLIENT_ID }}
33-
TEST_APP_ENT_PRIVATE_KEY: ${{ secrets.TEST_APP_ENT_PRIVATE_KEY }}
34-
TEST_APP_ORG_CLIENT_ID: ${{ secrets.TEST_APP_ORG_CLIENT_ID }}
35-
TEST_APP_ORG_PRIVATE_KEY: ${{ secrets.TEST_APP_ORG_PRIVATE_KEY }}
36-
TEST_USER_ORG_FG_PAT: ${{ secrets.TEST_USER_ORG_FG_PAT }}
37-
TEST_USER_USER_FG_PAT: ${{ secrets.TEST_USER_USER_FG_PAT }}
38-
TEST_USER_PAT: ${{ secrets.TEST_USER_PAT }}
30+
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v5
31+
secrets: inherit

0 commit comments

Comments
 (0)