Merge pull request #20218 from Homebrew/migrate-semeru-jdk
[Homebrew/homebrew-cask-versions.git] / .github / workflows / rebase.yml
blobb12f95d71ad61181d883282b912067c3f6c4f650
1 name: Rebase Pull Request
3 on:
4   repository_dispatch:
5     types: [rebase-command]
7 permissions:
8   contents: read
10 jobs:
11   rebase_pull_request:
12     name: Rebase Pull Request
13     runs-on: ubuntu-latest
14     steps:
15       - name: Rebase Pull Request
16         uses: peter-evans/rebase@52289ddc070ea10c8e2530c0740972ff39ac8769
17         id: rebase
18         with:
19           token: ${{ secrets.HOMEBREW_CASK_REBASE_TOKEN }}
20           head: ${{ github.event.client_payload.pull_request.head.label }}
22       - name: Add 👍 Reaction
23         if: always() && steps.rebase.outputs.rebased-count == 1
24         uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
25         with:
26           token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}
27           repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
28           comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
29           reactions: '+1'
31       - name: Add 👎 Reaction
32         if: always() && steps.rebase.outputs.rebased-count != 1
33         uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
34         with:
35           token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}
36           repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
37           comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
38           reactions: '-1'