Skip to content

Commit 80b708a

Browse files
committed
Fix miseToml
1 parent 63b9730 commit 80b708a

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

Actions/Comment/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ runs:
2626
- name: Setup Swift
2727
uses: jdx/mise-action@v2
2828
with:
29-
mise_toml: '[tools]\nswift = "5"\n[settings]\nexperimental = true\n'
29+
mise_toml: |-
30+
[tools]
31+
swift = "5"
32+
[settings]
33+
experimental = true
3034
- name: Create Mintfile
3135
run: echo Wei18/GitHubSwiftActions@${{ inputs.action_ref }} > ${{ github.action_path }}/Mintfile
3236
shell: bash

Actions/Release/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ runs:
2323
- name: Setup Swift
2424
uses: jdx/mise-action@v2
2525
with:
26-
mise_toml: '[tools]\nswift = "5"\n[settings]\nexperimental = true\n'
26+
mise_toml: |-
27+
[tools]
28+
swift = "5"
29+
[settings]
30+
experimental = true
2731
- name: Create Mintfile
2832
run: echo Wei18/GitHubSwiftActions@${{ inputs.action_ref }} > ${{ github.action_path }}/Mintfile
2933
shell: bash

Sources/YamlWriter/CLIYamlBuilder.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,19 @@ private struct SetUpActionFactory {
7979

8080
func buildSteps() -> [[String: Any]] {
8181
let content = "\(SwiftPackageConfig.current.repo)@${{ inputs.action_ref }}"
82+
let miseToml = #"""
83+
[tools]
84+
swift = "5"
85+
[settings]
86+
experimental = true
87+
"""#
88+
8289
let action: [[String: Any]] = [
8390
[
8491
"name": "Setup Swift",
8592
"uses": "jdx/mise-action@v2",
8693
"with": [
87-
"mise_toml": #"[tools]\nswift = "5"\n[settings]\nexperimental = true\n"#,
94+
"mise_toml": Yams.Node.scalar(.init(miseToml, .implicit, .literal)),
8895
],
8996
],
9097
[

0 commit comments

Comments
 (0)