Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

rebase-command

rebase-command #137

Workflow file for this run

name: Rebase Pull Request
on:
repository_dispatch:
types: [rebase-command]
permissions:
contents: read
jobs:
rebase_pull_request:
name: Rebase Pull Request
runs-on: ubuntu-latest
steps:
- name: Rebase Pull Request
uses: peter-evans/rebase@52289ddc070ea10c8e2530c0740972ff39ac8769
id: rebase
with:
token: ${{ secrets.HOMEBREW_CASK_REBASE_TOKEN }}
head: ${{ github.event.client_payload.pull_request.head.label }}
- name: Add πŸ‘ Reaction
if: always() && steps.rebase.outputs.rebased-count == 1
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
with:
token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
reactions: '+1'
- name: Add πŸ‘Ž Reaction
if: always() && steps.rebase.outputs.rebased-count != 1
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
with:
token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
reactions: '-1'