diff --git a/.github/linters/.jscpd.json b/.github/linters/.jscpd.json deleted file mode 100644 index 9cd4e12..0000000 --- a/.github/linters/.jscpd.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "threshold": 0, - "reporters": [ - "consoleFull" - ], - "ignore": [ - "**/tests/**", - "**/.github/workflows/TestWorkflow.yml", - "**/.github/workflows/Action-Test*" - ], - "absolute": true -} diff --git a/.github/workflows/Linter.yml b/.github/workflows/Linter.yml index cf13018..05f128c 100644 --- a/.github/workflows/Linter.yml +++ b/.github/workflows/Linter.yml @@ -29,6 +29,7 @@ jobs: env: GITHUB_TOKEN: ${{ github.token }} VALIDATE_BIOME_FORMAT: false + VALIDATE_JSCPD: false VALIDATE_JSON_PRETTIER: false VALIDATE_MARKDOWN_PRETTIER: false VALIDATE_YAML_PRETTIER: false diff --git a/.github/workflows/Auto-Release.yml b/.github/workflows/Release.yml similarity index 75% rename from .github/workflows/Auto-Release.yml rename to .github/workflows/Release.yml index 87e5250..47d3f27 100644 --- a/.github/workflows/Auto-Release.yml +++ b/.github/workflows/Release.yml @@ -1,6 +1,6 @@ -name: Auto-Release +name: Release -run-name: "Auto-Release - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}" +run-name: "Release - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}" on: pull_request: @@ -12,6 +12,9 @@ on: - reopened - synchronize - labeled + paths: + - 'action.yml' + - 'src/**' concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -22,7 +25,7 @@ permissions: pull-requests: write # Required to create comments on the PRs jobs: - Auto-Release: + Release: runs-on: ubuntu-latest steps: - name: Checkout Code @@ -30,7 +33,7 @@ jobs: with: persist-credentials: false - - name: Auto-Release + - name: Release uses: PSModule/Auto-Release@eabd533035e2cb9822160f26f2eda584bd012356 # v1.9.5 env: GITHUB_TOKEN: ${{ github.token }} diff --git a/action.yml b/action.yml index a4614ec..2f84c8d 100644 --- a/action.yml +++ b/action.yml @@ -99,11 +99,11 @@ runs: $DebugPreference = $env:PSMODULE_GITHUB_SCRIPT_INPUT_Debug -eq 'true' ? 'Continue' : 'SilentlyContinue' $VerbosePreference = $env:PSMODULE_GITHUB_SCRIPT_INPUT_Verbose -eq 'true' ? 'Continue' : 'SilentlyContinue' try { - ${{ github.action_path }}/scripts/init.ps1 - ${{ github.action_path }}/scripts/info.ps1 + ${{ github.action_path }}/src/init.ps1 + ${{ github.action_path }}/src/info.ps1 ${{ inputs.Script }} - ${{ github.action_path }}/scripts/outputs.ps1 + ${{ github.action_path }}/src/outputs.ps1 } finally { - ${{ github.action_path }}/scripts/clean.ps1 + ${{ github.action_path }}/src/clean.ps1 } diff --git a/scripts/clean.ps1 b/src/clean.ps1 similarity index 100% rename from scripts/clean.ps1 rename to src/clean.ps1 diff --git a/scripts/info.ps1 b/src/info.ps1 similarity index 100% rename from scripts/info.ps1 rename to src/info.ps1 diff --git a/scripts/init.ps1 b/src/init.ps1 similarity index 100% rename from scripts/init.ps1 rename to src/init.ps1 diff --git a/scripts/outputs.ps1 b/src/outputs.ps1 similarity index 100% rename from scripts/outputs.ps1 rename to src/outputs.ps1