peterus / platformio_dependabot

MIT License
6 stars 4 forks source link

Workflows not triggered #5

Closed jeremypoulter closed 4 months ago

jeremypoulter commented 4 months ago

The workflows do not seem to be triggered on the PRs that are created, so the checks are never satisfied. See OpenEVSE/openevse_esp32_firmware#838 for example.

The workflow is here: https://github.com/OpenEVSE/openevse_esp32_firmware/blob/master/.github/workflows/dependabot.yml

jeremypoulter commented 4 months ago

Hum... looks like this is by design on GitHub's part:

When you use the repository's GITHUB_TOKEN to perform tasks, events triggered by the GITHUB_TOKEN, with the exception of workflow_dispatch and repository_dispatch, will not create a new workflow run. This prevents you from accidentally creating recursive workflow runs. For example, if a workflow run 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.

https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow