Skip to content

Commit

Permalink
Merge pull request #4214 from systeminit/try
Browse files Browse the repository at this point in the history
feat: a /try command for merge queues
  • Loading branch information
sprutton1 authored Jul 24, 2024
2 parents 55ef8df + 093b673 commit 625e3e0
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/try.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Try Build

on: issue_comment

permissions:
issues: write

env:
branch: ${{ github.head_ref || github.ref_name }}

jobs:
try:
runs-on: ubuntu-latest
if: startsWith(github.event.comment.body, '/try')
steps:
- name: Check for try
id: command
uses: xt0rted/slash-command-action@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
command: try
reaction-type: "eyes"
- name: Run build
uses: "buildkite/[email protected]"
with:
buildkite_api_access_token: ${{ secrets.BUILDKITE_TOKEN }}
pipeline: "si/merge-queue"
branch: $branch
commit: "HEAD"
message: ":github: Try for branch $branch"
ignore_pipeline_branch_filter: true
send_pull_request: true

0 comments on commit 625e3e0

Please sign in to comment.