diff --git a/.github/workflows/comment-command.yml b/.github/workflows/comment-command.yml index 3c3cc812c3..1b5e689055 100644 --- a/.github/workflows/comment-command.yml +++ b/.github/workflows/comment-command.yml @@ -9,11 +9,11 @@ jobs: runs-on: ubuntu-latest steps: - name: React Rocket - uses: actions/github-script@v6 + uses: actions/github-script@v4 with: script: | const {owner, repo} = context.issue - github.rest.reactions.createForIssueComment({ + github.reactions.createForIssueComment({ owner, repo, comment_id: context.payload.comment.id, @@ -34,7 +34,7 @@ jobs: GITHUB_TOKEN: "${{ secrets.COMMENT_COMMAND_PAT_TOKEN }}" NUMBER: ${{ github.event.issue.number }} - name: Set up Python 3.8 - uses: actions/setup-python@v4 + uses: actions/setup-python@v2 with: python-version: 3.8 - name: Install clang-format @@ -54,6 +54,4 @@ jobs: git config user.email "41898282+github-actions[bot]@users.noreply.github.com" # Commit git commit -am "wpiformat" - git push origin HEAD:refs/pull/$NUMBER/head - env: - NUMBER: ${{ github.event.issue.number }} + git push