Skip to content

Commit

Permalink
Merge pull request #4215 from systeminit/tryer
Browse files Browse the repository at this point in the history
feat: try, try again
  • Loading branch information
sprutton1 authored Jul 24, 2024
2 parents ee9a62f + bd95f5a commit fe35765
Showing 1 changed file with 14 additions and 22 deletions.
36 changes: 14 additions & 22 deletions .github/workflows/try.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,24 @@
name: Try Build

on: issue_comment
on:
issue_comment:
workflow_call:

permissions:
issues: write
permissions: write-all

env:
branch: ${{ github.head_ref || github.ref_name }}
branch: ${{ 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
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 fe35765

Please sign in to comment.