Skip to content

Commit 0159736

Browse files
🩹 [Patch]: Refactor Action-Test workflow to remove Prerelease input and create separate Action-Test-Prerelease workflow
1 parent 7ed1563 commit 0159736

File tree

2 files changed

+31
-6
lines changed

2 files changed

+31
-6
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Action-Test-Prerelease
2+
3+
run-name: "Action-Test - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
4+
5+
on:
6+
workflow_dispatch:
7+
inputs:
8+
Prerelease:
9+
type: boolean
10+
default: false
11+
description: Use the prerelease version of GitHub PowerShell module.
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
permissions:
18+
contents: read
19+
pull-requests: read
20+
21+
jobs:
22+
ActionTest:
23+
uses: ./.github/workflows/TestWorkflow.yml
24+
secrets: inherit
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
os: [ubuntu-latest, macos-latest, windows-latest]
29+
with:
30+
runs-on: ${{ matrix.os }}
31+
Prerelease: ${{ inputs.Prerelease }}

‎.github/workflows/Action-Test.yml‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ run-name: "Action-Test - [${{ github.event.pull_request.title }} #${{ github.eve
55

66
on:
77
workflow_dispatch:
8-
inputs:
9-
Prerelease:
10-
type: boolean
11-
default: false
12-
description: Use the prerelease version of GitHub PowerShell module.
138
pull_request:
149
schedule:
1510
- cron: '0 0 * * *'
@@ -32,4 +27,3 @@ jobs:
3227
os: [ubuntu-latest, macos-latest, windows-latest]
3328
with:
3429
runs-on: ${{ matrix.os }}
35-
Prerelease: ${{ inputs.Prerelease || false }}

0 commit comments

Comments
 (0)