Skip to content

Commit 17817f8

Browse files
authored
ci(workflow): update github-script and checkout actions
1 parent fd8082a commit 17817f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/combine-prs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
# Steps represent a sequence of tasks that will be executed as part of the job
3232
steps:
33-
- uses: actions/github-script@v3
33+
- uses: actions/github-script@v6
3434
id: fetch-branch-names
3535
name: Fetch branch names
3636
with:
@@ -94,7 +94,7 @@ jobs:
9494
console.log('Combined: ' + combined);
9595
return combined
9696
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
97-
- uses: actions/checkout@v2.3.3
97+
- uses: actions/checkout@v3
9898
with:
9999
fetch-depth: 0
100100
# Creates a branch with other PR branches merged together
@@ -120,7 +120,7 @@ jobs:
120120
git pull origin $sourcebranches --no-edit
121121
git push origin $COMBINE_BRANCH_NAME
122122
# Creates a PR with the new combined branch
123-
- uses: actions/github-script@v3
123+
- uses: actions/github-script@v6
124124
name: Create Combined Pull Request
125125
env:
126126
PRS_STRING: ${{ steps.fetch-branch-names.outputs.prs-string }}
@@ -129,7 +129,7 @@ jobs:
129129
script: |
130130
const prString = process.env.PRS_STRING;
131131
const body = 'This PR was created by the Combine PRs action by combining the following PRs:\n' + prString;
132-
await github.pulls.create({
132+
await github.rest.pulls.create({
133133
owner: context.repo.owner,
134134
repo: context.repo.repo,
135135
title: 'Combined PR',

0 commit comments

Comments
 (0)