diff --git a/.github/workflows/make_patch.yml b/.github/workflows/make_patch.yml index d2d1b8b9..f08a6a2a 100644 --- a/.github/workflows/make_patch.yml +++ b/.github/workflows/make_patch.yml @@ -1,6 +1,9 @@ name: Make Patch -on: pull_request +on: + pull_request: + branches: + - master jobs: make_patch: @@ -23,12 +26,10 @@ jobs: name: ${{ github.head_ref }} path: .github/patch_data - - name: Comment artifact url - uses: actions/github-script@v3 + - uses: actions/github-script@v6 with: - github-token: ${{secrets.GITHUB_TOKEN}} script: | - github.issues.createComment({ + github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo,