From b3ae8bb6261ab15fe779e0afc606aa865b4e48ae Mon Sep 17 00:00:00 2001 From: Wei18 <41205mw@gmail.com> Date: Sat, 7 Sep 2024 12:31:48 +0800 Subject: [PATCH] Fix typo --- Actions/Comment/action.yml | 2 +- Sources/YamlWriter/CLIYamlBuilder.swift | 17 +++-------------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/Actions/Comment/action.yml b/Actions/Comment/action.yml index 7583905..0e942f2 100644 --- a/Actions/Comment/action.yml +++ b/Actions/Comment/action.yml @@ -31,6 +31,6 @@ runs: REPO: ${{ inputs.repo }} TOKEN: ${{ inputs.token }} name: Run Comment - run: mint run Wei18/GitHubSwiftActions@main Comment + run: ~/.mint/bin/mint run Wei18/GitHubSwiftActions@main Comment shell: bash using: composite diff --git a/Sources/YamlWriter/CLIYamlBuilder.swift b/Sources/YamlWriter/CLIYamlBuilder.swift index b9bb704..d23d930 100644 --- a/Sources/YamlWriter/CLIYamlBuilder.swift +++ b/Sources/YamlWriter/CLIYamlBuilder.swift @@ -47,24 +47,13 @@ struct CLIYamlBuilder { "using": "composite", "steps": [ [ - "name": "Setup Swift", - "uses": "swift-actions/setup-swift@v2", - "with": [ - "swift-version": "5.10.0", - ], - ], - [ - "uses": "actions/cache@v4", - "with": [ - "path": "../../.build", - "key": "${{ runner.os }}-spm-${{ hashFiles('/Package.resolved') }}", - "restore-keys": "${{ runner.os }}-spm-", - ] + "name": "Setup Swift, Mint, Cache, etc.", + "uses": "Wei18/GitHubSwiftActions/Actions/SetUp@main", ], [ "name": "Run \(name)", // FIXME: owner/repo - "run": "mint run Wei18/GitHubSwiftActions@main \(name)", + "run": "~/.mint/bin/mint run Wei18/GitHubSwiftActions@main \(name)", "env": envDict, "shell": "bash", ],