Skip to content

Commit c2636d4

Browse files
Refactor Action-Test workflow to streamline output handling and remove unused scripts
1 parent 0ee249a commit c2636d4

File tree

3 files changed

+3
-30
lines changed

3 files changed

+3
-30
lines changed

.github/workflows/Action-Test.yml

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -63,36 +63,16 @@ jobs:
6363
Set-GitHubEnvironmentVariable -Name 'OCTOCAT' -Value $cat
6464
Set-GitHubOutput -Name 'WISECAT' -Value $cat
6565
Set-GitHubOutput -Name 'Zen' -Value $zen
66-
67-
"ZEN=$zen" >> $env:GITHUB_OUTPUT
68-
'WISECAT2<<EOF' >> $env:GITHUB_OUTPUT
69-
$cat >> $env:GITHUB_OUTPUT
70-
'EOF' >> $env:GITHUB_OUTPUT
71-
7266
Set-GitHubStepSummary -Summary $cat
7367
74-
- name: test
75-
id: test2
76-
shell: pwsh
77-
run: |
78-
Get-ChildItem env: | Format-Table -AutoSize
79-
80-
- name: Action-Test-Env
81-
uses: ./
82-
with:
83-
Script: |
84-
$env:OCTOCAT
85-
8668
- name: Action-Test-Output
8769
uses: ./
8870
env:
89-
result: ${{ steps.test.outputs.WISECAT }}
71+
result: ${{ steps.test.outputs.result }}
9072
with:
9173
Script: |
92-
"Wisecat"
93-
$env:WISECAT
94-
"Zen"
95-
$env:ZEN
74+
"result"
75+
$env:result
9676
9777
# ActionTestWithoutToken:
9878
# name: Action-Test - [WithoutToken]

action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,3 @@ runs:
6363
# GitHub-Script
6464
. "${{ github.action_path }}\scripts\main.ps1"
6565
${{ inputs.Script }}
66-
. "${{ github.action_path }}\scripts\outputs.ps1"

scripts/outputs.ps1

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

0 commit comments

Comments
 (0)