@box/boxcli v4.0.0 release note #244
Workflow file for this run
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
# This workflow listens to any new labels being added to | |
# a Pull Request. When the `automerge` label is added, it | |
# checks if all required checks pass and automerges the | |
# pull request. | |
name: Auto Merge PRs | |
on: | |
pull_request: | |
types: | |
- labeled | |
jobs: | |
automerge: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Auto-merge pull requests that pass CI tests | |
uses: "pascalgn/[email protected]" | |
env: | |
# Use the DISPATCH_ACCESS_TOKEN again, as we will want to doo this as | |
# the box-devrel user. Without this token, a merg won't trigger an | |
# automatic deploy to the `en` branch. | |
GITHUB_TOKEN: "${{ secrets.DISPATCH_ACCESS_TOKEN }}" | |
# Prefer a squash merge | |
MERGE_METHOD: squash | |
# Requrie the automerge label to be present | |
MERGE_LABELS: automerge | |
# Remove all labels after the fact | |
MERGE_REMOVE_LABELS: "automerge, allow-automerge" | |
# Delete the branch after merging | |
MERGE_DELETE_BRANCH: true | |
# Only allow this for the box-devrel user. This prevents | |
# abuse of the `automerge` label. | |
MERGE_FILTER_AUTHOR: "box-devrel" |