Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix YAML Syntax Errors and Improve Configuration Consistency #444

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

lechpzn
Copy link

@lechpzn lechpzn commented Feb 13, 2025

Description

This PR fixes several minor issues in GitHub Actions workflows to ensure better compatibility and stability. The following changes have been made:

Changes

  • Fixed incorrect secret variable reference in linear.yml (github-token → github_token).
  • Removed invalid trailing commas in main.yml that could cause parsing errors.
  • Corrected Rust toolchain version in steel-documentation.yml (r0.1.81.0 → "1.81.0") to prevent workflow failures.

Impact

Prevents workflow failures due to invalid syntax.
Ensures consistent environment variable usage.
Improves maintainability of GitHub Actions workflows.


Comment

This PR corrects YAML formatting errors and ensures the correct Rust toolchain version is used in documentation builds. Let me know if any further changes are required!

It is better to use github_token (with an underscore), as GitHub Actions follows this style in the documentation.
Trailing commas are not valid in YAML syntax, and they cause parsing errors, preventing the workflow from running. GitHub Actions will fail to load the workflow if commas are mistakenly included in env variables.
The typo in RISC0_TOOLCHAIN_VERSION: r0.1.81.0 is incorrect because Rust toolchain versions do not use an "r" prefix. This will cause the workflow to fail when trying to install an invalid Rust version. It should be corrected to 1.81.0 to match Rust's standard versioning.
@lechpzn lechpzn requested a review from a team as a code owner February 13, 2025 01:41
@@ -22,7 +22,7 @@ jobs:
- name: Find or create a Linear Issue
uses: risc0/action-find-or-create-linear-issue@risc0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation on https://github.com/ctriolo/action-find-or-create-linear-issue clearly uses the input name github-token. I understand that the corresponding secret and env is typically called GITHUB_TOKEN, but I'd still follow the actions documentation (and consistency with the linear-) here and not change this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants