From 935e15c4d235eef213845a1743e58ab880b38cbd Mon Sep 17 00:00:00 2001 From: Sixian Yi Date: Thu, 23 Jan 2025 12:33:19 -0800 Subject: [PATCH] remove PR trigger --- .github/workflows/tests.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d6feaec69..ff13a4cb0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,8 +1,13 @@ name: auto-tests on: - pull_request: + # pull_request: workflow_dispatch: + inputs: + commit_sha: + description: 'Specific Commit SHA to trigger on' + required: false + default: $GITHUB_SHA # default to the last commit of $GITHUB_REF branch jobs: test-llama-stack-as-library: @@ -16,9 +21,13 @@ jobs: provider: [fireworks, together] steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.inputs.commit_sha }} - - name: Echo branch name - run: echo "Running on branch ${{ github.ref }}" + - name: Echo commit SHA + run: | + echo "Triggered on commit SHA: ${{ github.event.inputs.commit_sha }}" + git rev-parse HEAD - name: Install dependencies run: |