mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-06-30 06:12:15 -06:00
* cache.yml: update to match main repo * ci.yml: update to match main repo * dispatch-command.yml: update to match main repo * rebase.yml: update to match main repo * rerun-workflow.yml: update to match main repo * triage.yml: update to match main repo
38 lines
1.4 KiB
YAML
38 lines
1.4 KiB
YAML
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@08cedbbd4eabcd913bf091844614eceddaea4a5d
|
|
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@c9fcb64660bc90ec1cc535646af190c992007c32
|
|
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 }}
|
|
reaction-type: '+1'
|
|
|
|
- name: Add 👎 Reaction
|
|
if: always() && steps.rebase.outputs.rebased-count != 1
|
|
uses: peter-evans/create-or-update-comment@c9fcb64660bc90ec1cc535646af190c992007c32
|
|
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 }}
|
|
reaction-type: '-1'
|