This repository has been archived by the owner on Apr 9, 2024. It is now read-only.
chore(deps): update voiceflow dependencies (automerge) (vf-000) #98
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Keeps the current branch up-to-date by rebasing to master when necessary | |
name: Automatic Rebase | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize, ready_for_review] | |
jobs: | |
rebase-to-master: | |
name: Rebase to Master | |
if: github.event.pull_request.draft == false && github.event.pull_request.user.login != 'renovate[bot]' && github.event.pull_request.user.login != 'dependabot[bot]' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the latest code | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo | |
- name: Find Pull Request | |
id: find-pr | |
uses: kylorhall/find-github-pull-request@v1.0.0 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commitSha: ${{ github.sha }} | |
allowClosed: false | |
failIfNotFound: false | |
- name: Rebase Pull Request | |
if: ${{ steps.find-pr.outputs.number != '' }} | |
uses: voiceflow/rebase-many@latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_SA_TOKEN }} | |
PR_NUMBERS: ${{ steps.find-pr.outputs.number }} | |
COMMENT_ON_FAILURE: 'true' | |
LABEL_ON_FAILURE: 'true' |