-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot-github_actions-actions-dependency…
…-review-action-4
- Loading branch information
Showing
2 changed files
with
25 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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})); |