ci: create pull request action (#288)
Refactor pull request creation into composite action.
This commit is contained in:
committed by
GitHub
parent
88c126385a
commit
223e8f57b9
14
.github/workflows/deps.yml
vendored
14
.github/workflows/deps.yml
vendored
@@ -22,19 +22,11 @@ jobs:
|
||||
run: go mod tidy
|
||||
- name: Diff
|
||||
run: git diff
|
||||
- name: Generate Bot Token
|
||||
uses: tibdex/github-app-token@586e1a624db6a5a4ac2c53daeeded60c5e3d50fe # v1.5.2
|
||||
id: bot
|
||||
- name: Create Pull Request
|
||||
uses: ./.github/actions/create-pull-request
|
||||
with:
|
||||
app_id: ${{ secrets.APP_ID }}
|
||||
private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@bd72e1b7922d417764d27d30768117ad7da78a0e # v4.0.2
|
||||
with:
|
||||
token: ${{ steps.bot.outputs.token }}
|
||||
commit-message: "all: upgrade direct dependencies"
|
||||
app_private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
||||
branch: auto-upgrade-deps
|
||||
base: master
|
||||
delete-branch: true
|
||||
title: "all: upgrade direct dependencies"
|
||||
body: "Auto-generated upgrade of module dependencies."
|
||||
|
||||
Reference in New Issue
Block a user