Skip to content

Commit

Permalink
Merge f94d54d into cb43451
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Oct 1, 2021
2 parents cb43451 + f94d54d commit 8eadd48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/automerge.yml
Expand Up @@ -14,12 +14,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download Artifact
uses: actions/github-script@v4.1
uses: actions/github-script@v5
with:
script: |
const fs = require('fs');
const artifacts = await github.actions.listWorkflowRunArtifacts({
const artifacts = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: ${{ github.event.workflow_run.id }},
Expand All @@ -28,7 +28,7 @@ jobs:
return artifact.name == 'pr';
})[0];
const download = await github.actions.downloadArtifact({
const download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: matchArtifact.id,
Expand All @@ -38,14 +38,14 @@ jobs:
fs.writeFileSync('${{github.workspace}}/pr.zip', Buffer.from(download.data));
- run: unzip pr.zip
- name: Comment on PR
uses: actions/github-script@v4.1
uses: actions/github-script@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const fs = require('fs');
const pull_number = Number(fs.readFileSync('./NR'));
await github.pulls.merge({
await github.rest.pulls.merge({
merge_method: "merge",
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down
1 change: 1 addition & 0 deletions .prettierrc
@@ -1,4 +1,5 @@
{
"bracketSameLine": true,
"endOfLine": "lf",
"semi": true,
"tabWidth": 4,
Expand Down

0 comments on commit 8eadd48

Please sign in to comment.