Skip to content

Commit 7ef0cae

Browse files
committed
Testing!
1 parent 4fe161c commit 7ef0cae

File tree

4 files changed

+7
-15
lines changed

4 files changed

+7
-15
lines changed

β€Ž.github/workflows/ex06_inputScript.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ on:
44
inputs:
55
color:
66
description: Color to set
7-
required: false
8-
default: green
7+
type: boolean
8+
required: true
99

1010
defaults:
1111
run:
@@ -22,4 +22,4 @@ jobs:
2222

2323
- name: Set color to ${{ inputs.color }}
2424
id: color-selector
25-
run: . scripts/06_color.ps1 -Color '${{ inputs.color }}'
25+
run: . scripts/06_color.ps1 -Color ${{ inputs.color }}

β€Ž.github/workflows/ex09_GitHubApi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ defaults:
1010
shell: pwsh
1111

1212
jobs:
13-
modules:
13+
createIssueApi:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: πŸ“₯ Checkout

β€Žscripts/01_basic.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
$date = Get-Date
1+
$date = Get-Date
22
Write-Output "Congrats it worked at ${date}! πŸŽ‰πŸŽ‰πŸŽ‰"

β€Žscripts/06_color.ps1

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
[CmdletBinding()]
22
param(
3-
[Parameter(Mandatory)][string]$Color
3+
[Parameter(Mandatory)][switch]$Color
44
)
55

6-
$PSStyle.Foreground.$Color +
7-
"The Color is $Color" +
8-
$PSStyle.Reset
9-
10-
Write-Host -ForegroundColor $Color 'Write-Host gets colors stripped for some reason, possible bug https://github.com/orgs/community/discussions/40864'
11-
12-
'But object headers colorize just fine'
13-
14-
Get-ChildItem $PSScriptRoot
6+
"It is $Color"

0 commit comments

Comments
Β (0)