Categories
Development GitHub

Github action bot pushing to gh-pages causes page build to fail

I have a github repo where I have set up github actions to build the documentation automatically and push it to the gh-pages branch. Here is the full script, and everything goes find including pushing the update, which is done by the following 2 lines: git -c user.email=<hidden from question> -c user.name=”${GITHUB_ACTOR}” commit -m “Github […]

Categories
Development

How to debug a (PCRE) regex passed to grep?

I’m trying to debug a regex passed to grep that doesn’t seem to be working just on my system. This is the full command that should return the latest terraform release version: wget -qO – “https://api.github.com/repos/hashicorp/terraform/releases/latest” | grep -Po ‘”tag_name”: “v\K.*?(?=”)’ Which seems to be working for others but not me. Adding a * quantifier […]

Categories
Development

How to debug a (PCRE) regex passed to grep?

I’m trying to debug a regex passed to grep that doesn’t seem to be working just on my system. This is the full command that should return the latest terraform release version: wget -qO – “https://api.github.com/repos/hashicorp/terraform/releases/latest” | grep -Po ‘”tag_name”: “v\K.*?(?=”)’ Which seems to be working for others but not me. Adding a * quantifier […]