Skip to content

Commit 317dc76

Browse files
authored
Update update-prs.yml
1 parent 5903bff commit 317dc76

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

.github/workflows/update-prs.yml

+21-21
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
# ---
2-
# name: Update all PR branches if main gets update
1+
---
2+
name: Update all PR branches if main gets update
33

4-
# on:
5-
# push:
6-
# branches:
7-
# - "main"
4+
on:
5+
push:
6+
branches:
7+
- "main"
88

9-
# jobs:
10-
# update-prs:
11-
# name: Update PRs
12-
# runs-on: ubuntu-latest
13-
# steps:
14-
# - name: ⬇ Checkout repo
15-
# uses: actions/checkout@v3
9+
jobs:
10+
update-prs:
11+
name: Update PRs
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: ⬇ Checkout repo
15+
uses: actions/checkout@v3
1616

17-
# - name: ⌚ Update PRs
18-
# id: update-prs
19-
# uses: actions/github-script@v6
20-
# with:
21-
# script: |
22-
# const { default: updatePrs } = await import('${{ github.workspace }}/.github/scripts/update-prs.js');
23-
# // print how many PRs are updated
24-
# console.log(await updatePrs({github, context}));
17+
- name: ⌚ Update PRs
18+
id: update-prs
19+
uses: actions/github-script@v6
20+
with:
21+
script: |
22+
const { default: updatePrs } = await import('${{ github.workspace }}/.github/scripts/update-prs.js');
23+
// print how many PRs are updated
24+
console.log(await updatePrs({github, context}));

0 commit comments

Comments
 (0)