Comment

Comment by m_a_g

One extremely painful "gotcha" we encountered was trying to push code to a protected branch from inside a workflow.

With the default GITHUB_TOKEN, you can't push to protected branches. If you decide to use personal access tokens, you can push to protected branches, BUT that will trigger other workflows. That can cause an infinite loop of workflows.

We still couldn't figure out how to push code to a protected branch without triggering the same/other workflows.

parent m_a_g 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton