Skip to content

Commit 5a5165d

Browse files
🩹 [Patch]: Standardize project structure and update dependencies (#92)
Standardizes the repository structure by renaming the scripts folder to src, simplifies the Release workflow naming, and updates dependencies. ## Changes ### Renamed scripts folder to src - Moved `scripts/main.ps1` to `src/main.ps1` for consistency with other PSModule actions - Updated the path reference in `action.yml` to use the new location ### Simplified Release workflow - Renamed `Release-GHRepository.yml` to `Release.yml` - Updated workflow name from `Release-GHRepository` to `Release` for simplicity - Updated run-name and job names accordingly - Added path filters to only trigger on changes to `action.yml` and `src/**` ### Updated dependencies - Bumped `PSModule/GitHub-Script` from `v1.7.9` to `v1.7.10` ### Linter configuration cleanup - Removed unused `.jscpd.json` configuration file - Disabled JSCPD validation in Linter workflow as it's not needed for this repository
1 parent 88c7046 commit 5a5165d

File tree

5 files changed

+10
-17
lines changed

5 files changed

+10
-17
lines changed

.github/linters/.jscpd.json

Lines changed: 0 additions & 11 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

.github/workflows/Release-GHRepository.yml renamed to .github/workflows/Release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: Release-GHRepository
1+
name: Release
22

3-
run-name: "Release-GHRepository - [${{ 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
2326

2427
jobs:
25-
Release-GHRepository:
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: Release-GHRepository
36+
- name: Release
3437
uses: ./
3538
with:
3639
IncrementalPrerelease: false

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ runs:
9494
using: composite
9595
steps:
9696
- name: Release-GHRepository
97-
uses: PSModule/GitHub-Script@e827bea46d70eebc668bdd59e4654e0846177da4 # v1.7.9
97+
uses: PSModule/GitHub-Script@0097f3bbe3f413f3b577b9bcc600727b0ca3201a # v1.7.10
9898
env:
9999
PSMODULE_AUTO_RELEASE_INPUT_AutoCleanup: ${{ inputs.AutoCleanup }}
100100
PSMODULE_AUTO_RELEASE_INPUT_AutoPatching: ${{ inputs.AutoPatching }}
@@ -121,4 +121,4 @@ runs:
121121
WorkingDirectory: ${{ inputs.WorkingDirectory }}
122122
Script: |
123123
# Release-GHRepository
124-
${{ github.action_path }}/scripts/main.ps1
124+
${{ github.action_path }}/src/main.ps1
File renamed without changes.

0 commit comments

Comments
 (0)