Skip to content

Commit e341186

Browse files
Refactor action.yml and workflow files for consistency and clarity in input parameters
1 parent 4567862 commit e341186

File tree

4 files changed

+8
-30
lines changed

4 files changed

+8
-30
lines changed

.github/release.yml

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

.github/workflows/Action-Test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,4 @@ jobs:
2828
- name: Action-Test
2929
uses: ./
3030
with:
31-
working-directory: ./tests
32-
subject: PSModule
31+
Subject: PSModule

.github/workflows/Auto-Release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,3 @@ jobs:
3030

3131
- name: Auto-Release
3232
uses: PSModule/Auto-Release@v1
33-
env:
34-
GITHUB_TOKEN: ${{ github.token }}

action.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: {{ NAME }}
2-
description: {{ DESCRIPTION }}
1+
name: Template-Action
2+
description: A template action for GitHub Actions using PowerShell
33
author: PSModule
44
branding:
55
icon: upload-cloud
66
color: white
77

88
inputs:
9-
subject:
9+
Subject:
1010
description: The subject to greet
1111
required: false
1212
default: World
@@ -33,16 +33,15 @@ inputs:
3333
runs:
3434
using: composite
3535
steps:
36-
- name: {{ NAME }}
36+
- name: Template-Action
3737
uses: PSModule/GitHub-Script@v1
3838
env:
39-
{{ ORG }}_{{ NAME }}_INPUT_subject: ${{ inputs.subject }}
39+
PSMOUDLE_TEMPLATE_ACTION_INPUT_Subject: ${{ inputs.Subject }}
4040
with:
41+
Name: Template-Action
4142
Debug: ${{ inputs.Debug }}
4243
Prerelease: ${{ inputs.Prerelease }}
4344
Verbose: ${{ inputs.Verbose }}
4445
Version: ${{ inputs.Version }}
4546
WorkingDirectory: ${{ inputs.WorkingDirectory }}
46-
Script: |
47-
# {{ NAME }}
48-
${{ github.action_path }}/scripts/main.ps1
47+
Script: ${{ github.action_path }}/scripts/main.ps1

0 commit comments

Comments
 (0)