Skip to content

Commit 20c884b

Browse files
committed
Another way to send a PR
1 parent 7aec792 commit 20c884b

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/update-default.yml

+6-10
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,11 @@ jobs:
2828
fi
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
- uses: actions/github-script@v7
31+
32+
- name: Create Pull Request
3233
if: steps.update_default.outputs.pushed == 'true'
34+
uses: peter-evans/create-pull-request@v4
3335
with:
34-
github-token: ${{ secrets.GITHUB_TOKEN }}
35-
script: |
36-
await github.rest.pulls.create({
37-
owner: context.repo.owner,
38-
repo: context.repo.repo,
39-
head: "update-default-sbt-${{ steps.update_default.outputs.sbt_version }}",
40-
base: "${{ github.ref_name }}",
41-
title: "update default sbt version to ${{ steps.update_default.outputs.sbt_version }}"
42-
});
36+
title: "deps: Update sbt version"
37+
branch: generation
38+
base: ${{ github.head_ref }}

0 commit comments

Comments
 (0)