🐞 This is a limitation on GitHub. You'll need to switch to a PAT to publish the tag, or use the Workflow docker-publish as a reusable workflow in another Job within the same Workflow.
Unfortunately, there's no workaround to trigger a new workflow run from within another workflow without using a personal access token or a GitHub App installation token. This is a limitation put in place by GitHub to prevent recursive workflow runs.
Events triggered by the GITHUB_TOKEN, which is automatically created for each workflow run, will not create new workflow runs. This includes pushing tags or creating releases with the GITHUB_TOKEN.
If you want to avoid using a personal access token, you might need to reconsider your workflow design. For example, you could combine the steps of your two workflows into one single workflow if possible. This way, you won't need to trigger a new workflow from within another workflow.
Originally created by @duhow on GitHub (Feb 23, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/864
https://github.com/open-webui/open-webui/blob/b1fa32c5d66eb918c4b102d34a990b982f011f70/.github/workflows/build-release.yml#L32
🐞 This is a limitation on GitHub. You'll need to switch to a PAT to publish the `tag`, or `use` the Workflow `docker-publish` as a reusable workflow in another Job within the same Workflow.
> Unfortunately, there's no workaround to trigger a new workflow run from within another workflow without using a personal access token or a GitHub App installation token. This is a limitation put in place by GitHub to prevent recursive workflow runs.
>
> Events triggered by the GITHUB_TOKEN, which is automatically created for each workflow run, will not create new workflow runs. This includes pushing tags or creating releases with the GITHUB_TOKEN.
>
> If you want to avoid using a personal access token, you might need to reconsider your workflow design. For example, you could combine the steps of your two workflows into one single workflow if possible. This way, you won't need to trigger a new workflow from within another workflow.
We're aware of the issue and have been discussing it on the Discord, thanks! 🙏
<!-- gh-comment-id:1961229785 -->
@justinh-rahb commented on GitHub (Feb 23, 2024):
We're aware of the issue and have been discussing it on the Discord, thanks! 🙏
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @duhow on GitHub (Feb 23, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/864
https://github.com/open-webui/open-webui/blob/b1fa32c5d66eb918c4b102d34a990b982f011f70/.github/workflows/build-release.yml#L32
🐞 This is a limitation on GitHub. You'll need to switch to a PAT to publish the
tag, orusethe Workflowdocker-publishas a reusable workflow in another Job within the same Workflow.@justinh-rahb commented on GitHub (Feb 23, 2024):
We're aware of the issue and have been discussing it on the Discord, thanks! 🙏
@tjbck commented on GitHub (Mar 3, 2024):
Closing in favour of #878