[GH-ISSUE #864] infra: CI for docker-publish does not trigger on tag #12237

Closed
opened 2026-04-19 19:06:52 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @duhow on GitHub (Feb 23, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/864

b1fa32c5d6/.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.

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.
Author
Owner

@justinh-rahb commented on GitHub (Feb 23, 2024):

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! 🙏
Author
Owner

@tjbck commented on GitHub (Mar 3, 2024):

Closing in favour of #878

<!-- gh-comment-id:1975372287 --> @tjbck commented on GitHub (Mar 3, 2024): Closing in favour of #878
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#12237