Merge Queue #281
This file contains hidden or 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
| name: Merge Queue | |
| on: | |
| pull_request: | |
| types: [labeled] | |
| workflow_dispatch: | |
| inputs: | |
| batch_prs: | |
| type: string | |
| required: false | |
| bisect: | |
| type: boolean | |
| default: false | |
| concurrency: | |
| group: merge-queue | |
| cancel-in-progress: false | |
| jobs: | |
| queue: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.MERGE_QUEUE_TOKEN }} | |
| - name: Install mdsmith merge driver and pre-merge-commit hook | |
| env: | |
| MDSMITH_VERSION: v0.9.0 | |
| MDSMITH_SHA256: db39f381fe6d7497f41a179a3bc00e573b6b4abb6381b05337d32677dac5f99d | |
| run: | | |
| # Install to a stable path that will persist for the hook to use | |
| mkdir -p "$HOME/.local/bin" | |
| curl -fsSL "https://github.com/jeduden/mdsmith/releases/download/${MDSMITH_VERSION}/mdsmith-linux-amd64" \ | |
| -o "$HOME/.local/bin/mdsmith" | |
| echo "${MDSMITH_SHA256} $HOME/.local/bin/mdsmith" | sha256sum -c | |
| chmod +x "$HOME/.local/bin/mdsmith" | |
| "$HOME/.local/bin/mdsmith" merge-driver install | |
| "$HOME/.local/bin/mdsmith" pre-merge-commit install | |
| echo "$HOME/.local/bin" >> "$GITHUB_PATH" | |
| - uses: jeduden/merge-queue-action@92cf09d5df63db0abe8b6824f6db1f74b69cb793 # v0.7.7 | |
| with: | |
| token: ${{ secrets.MERGE_QUEUE_TOKEN }} | |
| ci_workflow: .github/workflows/ci.yml | |
| batch_size: "5" | |
| bisect: ${{ github.event.inputs.bisect }} | |
| batch_prs: ${{ github.event.inputs.batch_prs }} |