Skip to content
This repository has been archived by the owner on Aug 7, 2021. It is now read-only.

⬆️ Bump actions/github-script from 3 to 4.0.2 #122

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
user_email: "[email protected]"
commit_message: ":page_facing_up: Update dependency license file [skip ci]"
- name: Add PR comment
uses: actions/github-script@v3
uses: actions/github-script@v4.0.2
if: always() && steps.licensed.outputs.pr_number
with:
github-token: ${{ secrets.GH_PAT }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Generate branch name
uses: actions/github-script@v3
uses: actions/github-script@v4.0.2
id: set-branch-name
with:
script: |
Expand All @@ -34,7 +34,7 @@ jobs:
- name: Set branch name
run: echo "PULL_REQUEST_TITLE=${{steps.set-branch-name.outputs.result}}" >> $GITHUB_ENV
- name: Generate PR body
uses: actions/github-script@v3
uses: actions/github-script@v4.0.2
id: set-pr-body
with:
script: |
Expand All @@ -47,15 +47,15 @@ jobs:
- name: Set PR body
run: echo "PULL_REQUEST_BODY=${{steps.set-pr-body.outputs.result}}" >> $GITHUB_ENV
- name: Generate PR draft
uses: actions/github-script@v3
uses: actions/github-script@v4.0.2
id: set-pr-draft
with:
script: |
return !context.payload.ref.startsWith("refs/heads/hotfix");
- name: Set PR draft
run: echo "PULL_REQUEST_DRAFT=${{steps.set-pr-draft.outputs.result}}" >> $GITHUB_ENV
- name: Determine whether to merge
uses: actions/github-script@v3
uses: actions/github-script@v4.0.2
id: should-pr
with:
github-token: ${{ secrets.GH_PAT }}
Expand Down