Skip to content

Commit 0097f3b

Browse files
🩹 [Patch]: Standardize project structure and rename release workflow (#81)
This PR standardizes the project structure and updates workflows to align with PSModule conventions. ## Changed - Rename `Auto-Release.yml` workflow to `Release.yml` for consistency - Update release action from `PSModule/Auto-Release@v1.9.5` to `PSModule/Release-GHRepository@v2` - Rename `scripts/` folder to `src/` to follow standard project layout - Update `action.yml` to reference scripts from new `src/` location - Add linter workflow configuration ## Removed - Remove unused `.jscpd.json` linter configuration file ## Summary This PR brings the GitHub-Script action in line with PSModule's standardized project structure. The `scripts/` folder is renamed to `src/` for consistency across all actions, and the release workflow is updated to use the renamed `Release-GHRepository` action.
1 parent e827bea commit 0097f3b

File tree

8 files changed

+13
-21
lines changed

8 files changed

+13
-21
lines changed

β€Ž.github/linters/.jscpd.jsonβ€Ž

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

β€Ž.github/workflows/Linter.ymlβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
env:
3030
GITHUB_TOKEN: ${{ github.token }}
3131
VALIDATE_BIOME_FORMAT: false
32+
VALIDATE_JSCPD: false
3233
VALIDATE_JSON_PRETTIER: false
3334
VALIDATE_MARKDOWN_PRETTIER: false
3435
VALIDATE_YAML_PRETTIER: false
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: Auto-Release
1+
name: Release
22

3-
run-name: "Auto-Release - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
3+
run-name: "Release - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
44

55
on:
66
pull_request:
@@ -12,6 +12,9 @@ on:
1212
- reopened
1313
- synchronize
1414
- labeled
15+
paths:
16+
- 'action.yml'
17+
- 'src/**'
1518

1619
concurrency:
1720
group: ${{ github.workflow }}-${{ github.ref }}
@@ -22,15 +25,15 @@ permissions:
2225
pull-requests: write # Required to create comments on the PRs
2326

2427
jobs:
25-
Auto-Release:
28+
Release:
2629
runs-on: ubuntu-latest
2730
steps:
2831
- name: Checkout Code
2932
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3033
with:
3134
persist-credentials: false
3235

33-
- name: Auto-Release
34-
uses: PSModule/Auto-Release@eabd533035e2cb9822160f26f2eda584bd012356 # v1.9.5
36+
- name: Release
37+
uses: PSModule/Release-GHRepository@88c70461c8f16cc09682005bcf3b7fca4dd8dc1a # v2.0.1
3538
env:
3639
GITHUB_TOKEN: ${{ github.token }}

β€Žaction.ymlβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ runs:
9999
$DebugPreference = $env:PSMODULE_GITHUB_SCRIPT_INPUT_Debug -eq 'true' ? 'Continue' : 'SilentlyContinue'
100100
$VerbosePreference = $env:PSMODULE_GITHUB_SCRIPT_INPUT_Verbose -eq 'true' ? 'Continue' : 'SilentlyContinue'
101101
try {
102-
${{ github.action_path }}/scripts/init.ps1
103-
${{ github.action_path }}/scripts/info.ps1
102+
${{ github.action_path }}/src/init.ps1
103+
${{ github.action_path }}/src/info.ps1
104104
${{ inputs.Script }}
105-
${{ github.action_path }}/scripts/outputs.ps1
105+
${{ github.action_path }}/src/outputs.ps1
106106
}
107107
finally {
108-
${{ github.action_path }}/scripts/clean.ps1
108+
${{ github.action_path }}/src/clean.ps1
109109
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
Β (0)