Skip to content

Commit 60d9532

Browse files
authored
Automate creating PR for SimpleGraphic releases (#8425)
* Add SG workflow * Fix repo name * Fix repo owner
1 parent 009262e commit 60d9532

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Update SimpleGraphic DLLs
2+
on:
3+
repository_dispatch:
4+
types: [update-simple-graphic]
5+
jobs:
6+
update:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v3
11+
with:
12+
ref: 'dev'
13+
- name: Download DLLs
14+
uses: robinraju/release-downloader@v1
15+
with:
16+
repository: ${{ github.repository_owner }}/PathOfBuilding-SimpleGraphic
17+
tag: ${{ github.event.client_payload.tag }}
18+
fileName: SimpleGraphicDLLs-x64-windows.tar
19+
extract: true
20+
out-file-path: runtime
21+
- name: Create Pull Request
22+
uses: peter-evans/create-pull-request@v5
23+
with:
24+
title: Update to SimpleGraphic ${{ github.event.client_payload.tag }}
25+
branch: simple-graphic-${{ github.event.client_payload.tag }}
26+
body: |
27+
Update DLLs to SimpleGraphic-${{ github.event.client_payload.tag }} from ${{ github.event.client_payload.release_link }}
28+
commit-message: Update DLLs to SimpleGraphic-${{ github.event.client_payload.tag }}
29+

0 commit comments

Comments
 (0)