Skip to content

Commit bf6584c

Browse files
🩹 [Refactor]: Remove deprecated Auto-Release workflow and scripts; restructure paths in Invoke-ScriptAnalyzer
1 parent c50ca73 commit bf6584c

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
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:
6-
pull_request_target:
6+
pull_request:
77
branches:
88
- main
99
types:
@@ -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-
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
36+
- name: Release
3437
uses: PSModule/Auto-Release@eabd533035e2cb9822160f26f2eda584bd012356 # v1.9.5
3538
with:
3639
IncrementalPrerelease: false

‎action.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ runs:
259259
Verbose: ${{ inputs.Verbose }}
260260
Version: ${{ inputs.Version }}
261261
WorkingDirectory: ${{ inputs.WorkingDirectory }}
262-
Script: ${{ github.action_path }}/scripts/main.ps1
262+
Script: ${{ github.action_path }}/src/main.ps1
263263

264264
- name: Invoke-Pester
265265
uses: PSModule/Invoke-Pester@882994cbe1ff07c3fc8afdac52404c940f99b331 # v4.2.2
@@ -273,7 +273,7 @@ runs:
273273
Version: ${{ inputs.Version }}
274274
WorkingDirectory: ${{ inputs.WorkingDirectory }}
275275
TestResult_TestSuiteName: ${{ inputs.TestResult_TestSuiteName }}
276-
Path: ${{ github.action_path }}/scripts/tests/PSScriptAnalyzer
276+
Path: ${{ github.action_path }}/src/tests/PSScriptAnalyzer
277277
Run_Path: ${{ fromJson(steps.paths.outputs.result).CodePath }}
278278
ReportAsJson: ${{ inputs.ReportAsJson }}
279279
Notice_Mode: ${{ inputs.Notice_Mode }}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)