DEV Community

Discussion on: A portable Makefile for continuous delivery with Hugo and GitHub Pages

Collapse
 
lorenzofox3 profile image
RENARD Laurent

Yet another great article @victoria !

I need some clarification on this one though:

How do you avoid some kind of infinite loop ? If I understood correctly the action is triggered by a push and ends with a push, is not it ?

Thanks

Collapse
 
victoria profile image
Victoria Drake

Thankfully, someone smarter than me already solved that problem:

An action in a workflow run can't trigger a new workflow run. For example, if an action pushes code using the repository's GITHUB_TOKEN, a new workflow will not run even when the repository contains a workflow configured to run when push events occur.

I’ll talk more about it in next week’s article.

Collapse
 
lorenzofox3 profile image
RENARD Laurent

Oh great ! Thanks