Quick fix: ‘Error: Process completed with exit code 1’ in GitHub Actions with regex

In summary, I was running GitHub Actions and I had a regex expression using grep:

grep -Eo “\d+[.]\d+[.]\d+”

This was to retrieve a version number from a line. For example, 1.1.0. The solution worked locally, but it failed in my CI/CD.

Then, …


This content originally appeared on DEV Community and was authored by Alex Martinez

In summary, I was running GitHub Actions and I had a regex expression using grep:

grep -Eo "\d+[.]\d+[.]\d+"

This was to retrieve a version number from a line. For example, 1.1.0. The solution worked locally, but it failed in my CI/CD.

Then, I found out this issue: Grep failing in GitHub Action, working locally and you can see from there the fix:

StackOverflow response

So that's what I did, and BOOM it worked!

grep -Eo "[0-9]+[.][0-9]+[.][0-9]+"

Just writing it out here so I remember how I fixed it in case I see the error again :D

Also here are some screenshots from my actual pipeline:

Error

github action showing the error

Success

github action showing the solution


This content originally appeared on DEV Community and was authored by Alex Martinez


Print Share Comment Cite Upload Translate Updates
APA

Alex Martinez | Sciencx (2024-09-19T21:11:13+00:00) Quick fix: ‘Error: Process completed with exit code 1’ in GitHub Actions with regex. Retrieved from https://www.scien.cx/2024/09/19/quick-fix-error-process-completed-with-exit-code-1-in-github-actions-with-regex/

MLA
" » Quick fix: ‘Error: Process completed with exit code 1’ in GitHub Actions with regex." Alex Martinez | Sciencx - Thursday September 19, 2024, https://www.scien.cx/2024/09/19/quick-fix-error-process-completed-with-exit-code-1-in-github-actions-with-regex/
HARVARD
Alex Martinez | Sciencx Thursday September 19, 2024 » Quick fix: ‘Error: Process completed with exit code 1’ in GitHub Actions with regex., viewed ,<https://www.scien.cx/2024/09/19/quick-fix-error-process-completed-with-exit-code-1-in-github-actions-with-regex/>
VANCOUVER
Alex Martinez | Sciencx - » Quick fix: ‘Error: Process completed with exit code 1’ in GitHub Actions with regex. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/09/19/quick-fix-error-process-completed-with-exit-code-1-in-github-actions-with-regex/
CHICAGO
" » Quick fix: ‘Error: Process completed with exit code 1’ in GitHub Actions with regex." Alex Martinez | Sciencx - Accessed . https://www.scien.cx/2024/09/19/quick-fix-error-process-completed-with-exit-code-1-in-github-actions-with-regex/
IEEE
" » Quick fix: ‘Error: Process completed with exit code 1’ in GitHub Actions with regex." Alex Martinez | Sciencx [Online]. Available: https://www.scien.cx/2024/09/19/quick-fix-error-process-completed-with-exit-code-1-in-github-actions-with-regex/. [Accessed: ]
rf:citation
» Quick fix: ‘Error: Process completed with exit code 1’ in GitHub Actions with regex | Alex Martinez | Sciencx | https://www.scien.cx/2024/09/19/quick-fix-error-process-completed-with-exit-code-1-in-github-actions-with-regex/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.