Closed MathewBiddle closed 5 months ago
@ocefpaf there was an automated commit to main https://github.com/ioos/ioos_metrics/commit/a4dcd2f19d65d96b2fc36b6d48a7f91685a9dd09
However, the Action to update the website didn't run https://github.com/ioos/ioos_metrics/actions
Why doesn't the push to main kick off the website_create_and_deploy workflow?
I feel like I'm missing something really simple here.
Could it be the paths
? Maybe it will trigger only if those files/paths are touched?
I use paths
in the collect metrics action, but not in the website create and deploy action:
I wonder if it is because the automated push from the collect metrics action is done as Automated
with some generic github noreply account?
I suppose I could use workflow_run
to trigger this action after the metrics gathering one? But, what happens when the webpage action should be ran without running the metrics action? https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_run
@MathewBiddle I recall clicking on a bunch of permissions and digging into the settings to get this one to work properly. I don't have enough rights here to check but how is yout gh-pages config? Here is how mine looks:
looks like I have the same settings.
looks like I have the same settings.
I'll try to fork and debug it on my account. Will report soon...
I found this issue that may be related to what is happening here: https://github.com/orgs/community/discussions/27146
Edit: an easier alternative would be to create a PR instead of a direct commit. That should not only fix this issue but also make it easier to inspect the automated changes.
This commit from the scheduled GHA didn't kick off the webpage building GHA. https://github.com/ioos/ioos_metrics/commit/adc249a77174c89a2eb1e843304d350163185dc9
I had to run the webpage build manually:
I'm befuddled as I thought the action was ran on any new commits to
main
with:see https://github.com/ioos/ioos_metrics/blob/main/.github/workflows/website_create_and_deploy.yml