Skip to content

Commit

Permalink
resolve rust-setup error
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
msmouse authored and perryjrandall committed Sep 23, 2024
1 parent ac60da1 commit 590e1f5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/actions/rust-setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 590e1f5

Please sign in to comment.