Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Managerによって作成されたリリースではon: releaseのactionsが起動しない #26

Closed
tamaina opened this issue Jan 30, 2024 · 5 comments

Comments

@tamaina
Copy link

tamaina commented Jan 30, 2024

なんで?

@anatawa12
Copy link

anatawa12 commented Jan 30, 2024

github actionsの仕様ですね。
日本語は訳が支離滅裂だったので英語で引用

https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#about-workflow-triggers

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.

回避策として独自のGitHub appとしてworkflowから振る舞うことやPATをつかうのが提示されてますね。

https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/making-authenticated-api-requests-with-a-github-app-in-a-github-actions-workflow

@tamaina
Copy link
Author

tamaina commented Jan 31, 2024

リリースも一律でダメなんだなぁ

@tamaina
Copy link
Author

tamaina commented Feb 6, 2024

App別に作る以外に、ローカルへの参照としてworkflow_callをするのも考えられるけど…

@tamaina
Copy link
Author

tamaina commented Feb 6, 2024

eventsが使い物にならないからナシで

@tamaina
Copy link
Author

tamaina commented Feb 6, 2024

アプリを指定するようにした

@tamaina tamaina closed this as completed Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants