From 9301c2931d43e8b55e1a422a9aecbf3859d5dd8b Mon Sep 17 00:00:00 2001 From: aldenhu Date: Mon, 23 Sep 2024 17:58:00 +0000 Subject: [PATCH] resolve rust-setup error I put in the if- condition to speed up iteration on PRs, and it looks like when the condition is not hit, rust-setup is not happy with it. Removing to unbreak main. ``` Error: aptos-labs/aptos-core/main/.github/actions/rust-setup/action.yaml: The scalar style 'SingleQuoted' on line 23 and column 11 is not valid with the tag '!startsWith(github.ref,' Error: System.ArgumentException: Unexpected type '' encountered while reading 'action manifest root'. The type 'MappingToken' was expected. at GitHub.DistributedTask.ObjectTemplating.Tokens.TemplateTokenExtensions.AssertMapping(TemplateToken value, String objectDescription) at GitHub.Runner.Worker.ActionManifestManager.Load(IExecutionContext executionContext, String manifestFile) Error: Failed to load aptos-labs/aptos-core/main/.github/actions/rust-setup/action.yaml ``` --- .github/actions/rust-setup/action.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/actions/rust-setup/action.yaml b/.github/actions/rust-setup/action.yaml index ea5d5551f4cbc..acc81bf4bf0be 100644 --- a/.github/actions/rust-setup/action.yaml +++ b/.github/actions/rust-setup/action.yaml @@ -20,7 +20,6 @@ runs: # rust-cache action will cache ~/.cargo and ./target # https://github.com/Swatinem/rust-cache#cache-details - name: Run cargo cache - if: !startsWith(github.ref, 'refs/pull/') uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # pin@v2.7.3 with: key: ${{ inputs.ADDITIONAL_KEY }}