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 multiline error in GitHub Action workflow #227

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BigBang001
Copy link
Contributor

@BigBang001 BigBang001 commented Nov 11, 2024

Description of the Issue

This PR addresses the issue where the GitHub Action workflow fails with the error:

Error: cannot read a block mapping entry; a multiline key may not be an implicit key

Issue Reference

Fixes #228

The error occurs because the re.match regular expression in the Python code block is split across multiple lines, which YAML does not interpret correctly.

Fix Summary

The issue was fixed by modifying the re.match pattern in the YAML file, combining it into a single line within the run command. This ensures YAML can correctly parse and execute the Python script within the GitHub Action.

Changes Made

  • Updated the re.match pattern in the Check PR Description and Title step to be on a single line.
  • Verified that the YAML file now correctly processes the multiline Python command without errors.

Copy link
Contributor

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@Mayureshd-18 Mayureshd-18 self-requested a review November 11, 2024 19:35
Copy link
Collaborator

@Mayureshd-18 Mayureshd-18 left a comment

Choose a reason for hiding this comment

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

@BigBang001 Please link the issue using keywords. (fixes/closes..) You can find the detailed info about the same here:
https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword

If needed, please check out merged PRs for reference.

Thanks & regards

Other than looks good to me!

@BigBang001
Copy link
Contributor Author

@Mayureshd-18 I have linked the PR with the respective issue. Now you can check and verify.

@Mayureshd-18 Mayureshd-18 self-requested a review November 12, 2024 09:22
Copy link
Collaborator

@Mayureshd-18 Mayureshd-18 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Thanks

@Mayureshd-18 Mayureshd-18 requested review from rohitinu6 and jvedsaqib and removed request for rohitinu6 November 12, 2024 09:24
@Mayureshd-18 Mayureshd-18 added the bug Something isn't working label Nov 12, 2024
@BigBang001 BigBang001 changed the title pr-checker.yaml Fix YAML multiline error in GitHub Action workflow Nov 12, 2024
@BigBang001 BigBang001 changed the title Fix YAML multiline error in GitHub Action workflow Error: Fix YAML multiline error in GitHub Action workflow Nov 12, 2024
@BigBang001 BigBang001 changed the title Error: Fix YAML multiline error in GitHub Action workflow Fix YAML multiline error in GitHub Action workflow Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]:Cannot read a block mapping entry; a multiline key may not be an implicit key
2 participants