enriikke / gatsby-gh-pages-action

GitHub Action to build and deploy your Gatsby site to GitHub Pages ❤️🎩
MIT License
295 stars 62 forks source link

Not deploying to same branch #11

Closed kay-is closed 3 years ago

kay-is commented 4 years ago

There is a line of code that prevents deployment on the same branch, probably to get rid of recursion.

When I trigger with Cron, this should be okay, because pushes on that branch are ignored by the action.

enriikke commented 4 years ago

Hi @kay-is! Thanks for opening up the issue. You are correct about that line being there to prevent this action to be triggered by its own push.

I'm not sure if I follow your particular use case but I'll be happy to look at this (or potentially other options) if you can provide more context.

kay-is commented 4 years ago

I wanted to deploy once a day with cron, which didn't work.

enriikke commented 3 years ago

This was addressed in https://github.com/enriikke/gatsby-gh-pages-action/pull/41 😃