Skip to content

Commit fd95edc

Browse files
authored
fix: Adds complete code back to dist-pr workflow. (#183)
1 parent dfa4b81 commit fd95edc

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.github/workflows/dist-pr.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,23 @@ on:
2121

2222
jobs:
2323
create-pr:
24-
runs-on: ubuntu-latest
25-
steps:
26-
- name: Debug - Triggered!
27-
run: |
28-
echo "dist-pr.yml workflow triggered! Ref: ${{ github.ref }}"
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v3
28+
with:
29+
ref: ${{ github.event.after }} # Check out the *new* commit on dist
30+
31+
- name: Create Pull Request
32+
uses: peter-evans/create-pull-request@v5
33+
with:
34+
token: ${{ secrets.GH_MERGE_TOKEN }}
35+
commit-message: 'chore: automated output update (dist)'
36+
title: 'chore: automated output update (dist)'
37+
body: 'This PR contains updated build output from the dist branch.'
38+
branch: 'dist-to-main-pr' # Use a dedicated PR branch
39+
base: main
40+
labels: |
41+
automated pr
42+
dist-update
43+
draft: false # Or true, if you want to review before enabling auto-merge

0 commit comments

Comments
 (0)