diff --git a/.github/workflows/pr-comment-ci.yml b/.github/workflows/pr-comment-ci.yml index cf82c5678..0029b460c 100644 --- a/.github/workflows/pr-comment-ci.yml +++ b/.github/workflows/pr-comment-ci.yml @@ -13,7 +13,9 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 1 + sparse-checkout: | + .github/CODEOWNERS + sparse-checkout-cone-mode: false - uses: actions/github-script@v7 id: get-action with: @@ -41,7 +43,15 @@ jobs: } if (body.startsWith('/update-snapshot')) { next_action='update-snapshot' - } + } + if(next_action){ + await github.rest.reactions.createForIssueComment({ + owner: context.repo.owner, + repo: context.repo.repo, + comment_id: context.payload.comment.id, + content: 'rocket', + }) + } } else { core.warning('You are not collaborator'); } @@ -55,18 +65,18 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: main token: ${{ secrets.PERSONAL_TOKEN }} - name: gh checkout pr env: GH_TOKEN: ${{ secrets.PERSONAL_TOKEN }} run: gh pr checkout ${{ github.event.issue.number }} --recurse-submodules + - run: | + git config --local user.email "github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" - run: git submodule update --remote --merge - name: Commit Common run: | git add . - git config --local user.email "github-actions[bot]@users.noreply.github.com" - git config --local user.name "github-actions[bot]" git commit -m "chore: update common" git push @@ -77,7 +87,6 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: main token: ${{ secrets.PERSONAL_TOKEN }} - name: gh checkout pr env: