Skip to content

Commit a0bcd36

Browse files
committed
Add create PR step to the github action
1 parent e0b9d82 commit a0bcd36

1 file changed

Lines changed: 24 additions & 3 deletions

File tree

.github/workflows/get_new_package_versions.yml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,29 @@ jobs:
2727
matrix:
2828
update: ${{ fromJSON(needs.check-for-updates.outputs.updates) }}
2929
steps:
30-
- name: show update
30+
- name: checkout code
31+
uses: actions/checkout@v4
32+
- name: update the packages.txt
3133
env:
3234
update: ${{ matrix.update }}
33-
run: |
34-
echo "$update"
35+
run: ./hack/replace-package "$update"
36+
- name: debug git diff
37+
run: git diff
38+
- name: create PR
39+
id: create-pr
40+
uses: peter-evans/create-pull-request@v8
41+
with:
42+
commit-message: Automatic update ${{ matrix.update }}
43+
title: Automatic update ${{ matrix.update }}
44+
branch-suffix: short-commit-hash
45+
delete-branch: true
46+
base: main
47+
labels: |
48+
automated
49+
# automerge
50+
# - name: enable PR automerge
51+
# if steps.create-pr.outputs.pull-request-operation == 'created'
52+
# uses: peter-evans/enable-pull-request-automerge@v3
53+
# with:
54+
# pull-request-number: ${{ steps.create-pr.outputs.pull-request-nubmer }}
55+
# merge-method: rebase

0 commit comments

Comments
 (0)