DEV Community

Alex Martinez
Alex Martinez

Posted on

1

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+"
Enter fullscreen mode Exit fullscreen mode

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]+"
Enter fullscreen mode Exit fullscreen mode

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

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more