Skip to content

Commit 459c812

Browse files
authored
github: use peter-evans/create-pull-request action (#986)
The technote-space/create-pr-action action was not updated in the last three years. Signed-off-by: Christian Berendt <berendt@osism.tech>
1 parent 2ad7263 commit 459c812

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

.github/workflows/update-images.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,22 @@ jobs:
3030
- name: Install pip3
3131
run: pip3 install tox
3232

33-
- name: Update ${{ matrix.image }} images
34-
uses: technote-space/create-pr-action@v2
33+
- name: Update images
34+
run: tox -e update -- --dry-run --name ${{ matrix.image }}
35+
36+
- name: Create pull request
37+
uses: peter-evans/create-pull-request@v7
3538
with:
36-
EXECUTE_COMMANDS: |
37-
tox -e update -- --dry-run --name ${{ matrix.image }}
38-
COMMIT_EMAIL: 'bot@osism.tech'
39-
COMMIT_MESSAGE: |
39+
token: ${{ secrets.GITHUB_TOKEN }}
40+
commit-message: |
41+
chore: update ${{ matrix.image }} images
42+
43+
Signed-off-by: OSISM Bot <bot@osism.tech>
44+
committer: OSISM Bot <bot@osism.tech>
45+
branch: updates-images-${{ github.run_number }}
46+
delete-branch: true
47+
title: "chore: update ${{ matrix.image }} images"
48+
body: |
4049
chore: update ${{ matrix.image }} images
4150
4251
Signed-off-by: OSISM Bot <bot@osism.tech>
43-
COMMIT_NAME: "OSISM Bot"
44-
ONLY_DEFAULT_BRANCH: true
45-
PR_BRANCH_NAME: "update-${{ matrix.image }}-images"
46-
PR_BRANCH_PREFIX: "chore/"
47-
PR_TITLE: "chore: update ${{ matrix.image }} images"

0 commit comments

Comments
 (0)