-
Notifications
You must be signed in to change notification settings - Fork 7
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
自動生成したプルリクエストでactionが発火しない #194
Comments
とりあえず対応します。 |
同じ問題についてcreate-pull-requestのissueにありました。 |
いくつかの方法があるんですが、一番簡単なのはPAT( - name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v2
with:
+ token: ${{ secrets.PAT }}
commit-message: 'Update news.json'
branch: news
base: master
labels: auto_merge
branch-suffix: timestamp
title: '最新のお知らせ更新'
body: '公式サイトのお知らせが更新されました。差分を確認してマージしてください。' |
Dear @peter-evans コメントありがとうございます。(しかも日本語で😭) "create-pull-request"はとても便利です。"advanced usage"もとても参考になりました。 ↓↓↓↓↓↓↓↓english version(using DeepL)↓↓↓↓↓↓↓↓ Thank you for your comment. (and in Japanese😭) "Create-pull-request" is very useful. And "advanced usage" was also very helpful. |
こちらの問題ですが、今日中に対応します。 |
いろいろ試した結果、新たなmachine userを作って、Personal Access Token(PAT)を発行し、create-pull-requestにそのPATを使わせることでワークフローで作ったプルリクエストがワークフローを発火できることがわかりました。 - uses: peter-evans/create-pull-request@v2.7.0
name: Create Pull Request
with:
token: ${{ secrets.BOT_TOKEN }}
作成したPATは本リポジトリのsecretに設定しておきます。 |
closed #194 自動生成したプルリクエストでテストが走るようにした
起こっている問題 / The Problem
スクリーンショット / Screenshot
#192
期待する見せ方・挙動 / Expected Behavior
起こっている問題の再現手段 / Steps to Reproduce
create-pull-requestを使ってプルリクエストを作成してください。
参考:
#192 , #148
The text was updated successfully, but these errors were encountered: