Skip to content

Commit

Permalink
Merge pull request #4227 from systeminit/tryest
Browse files Browse the repository at this point in the history
fix: scope try to pull request branch
  • Loading branch information
sprutton1 authored Jul 24, 2024
2 parents 21b2032 + 9d37921 commit 4e7a724
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/try.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,23 @@ on:
issue_comment:
types: [created, edited, deleted]

permissions:
contents: read
issues: read
pull-requests: read

jobs:
try:
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/try') }}
runs-on: ubuntu-latest
steps:
- uses: xt0rted/pull-request-comment-branch@v2
id: comment-branch
- uses: "buildkite/[email protected]"
with:
buildkite_api_access_token: ${{ secrets.BUILDKITE_TOKEN }}
pipeline: "system-initiative/si-merge-queue"
branch: ${{ github.head_ref }}
message: ":github: Try for branch ${{ github.head_ref }}"
branch: ${{ steps.comment-branch.outputs.head_ref }}
message: ":github: Try for branch ${{ steps.comment-branch.outputs.head_ref }}"
ignore_pipeline_branch_filter: true
send_pull_request: true

0 comments on commit 4e7a724

Please sign in to comment.