Skip to content

Commit

Permalink
Update update-prs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranzke authored Sep 16, 2024
1 parent 5903bff commit 317dc76
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/update-prs.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
# ---
# name: Update all PR branches if main gets update
---
name: Update all PR branches if main gets update

# on:
# push:
# branches:
# - "main"
on:
push:
branches:
- "main"

# jobs:
# update-prs:
# name: Update PRs
# runs-on: ubuntu-latest
# steps:
# - name: ⬇ Checkout repo
# uses: actions/checkout@v3
jobs:
update-prs:
name: Update PRs
runs-on: ubuntu-latest
steps:
- name: ⬇ Checkout repo
uses: actions/checkout@v3

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

0 comments on commit 317dc76

Please sign in to comment.