Quick fix: 'Error: Process completed with exit code 1' in GitHub Actions with regex
Alex Martinez
Posted on September 19, 2024
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:
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
Success
💖 💪 🙅 🚩
Alex Martinez
Posted on September 19, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
webdev Understanding HTTP, Cookies, Email Protocols, and DNS: A Guide to Key Internet Technologies
November 30, 2024