this is a profoundly dumb bug

This commit is contained in:
Jacob Heider 2022-10-02 16:38:56 -04:00 committed by Jacob Heider
parent a59e2e9f00
commit e824dca8f2
3 changed files with 8 additions and 1 deletions

View file

@ -5,6 +5,9 @@ on:
projects:
required: true
type: string
ref:
required: true
type: string
env:
TEA_SECRET: ${{ secrets.TEA_SECRET }}
@ -15,9 +18,10 @@ jobs:
steps:
- name: queue
run: |
# Don't use GITHUB_SHA for PRs: https://github.com/orgs/community/discussions/25191
curl https://app.tea.xyz/api/builder/enqueue \
-H "authorization: bearer ${{ secrets.TEA_API_TOKEN }}" \
-d "$GITHUB_SHA ${{ inputs.projects }}"
-d "${{inputs.ref}} ${{ inputs.projects }}"
build:
runs-on: ${{ matrix.os }}

View file

@ -17,5 +17,7 @@ jobs:
uses: ./.github/workflows/build.yml
with:
projects: ${{ needs.get-diff.outputs.diff }}
# Don't use GITHUB_SHA for PRs: https://github.com/orgs/community/discussions/25191
ref: ${{ github.event.pull_request.head.sha }}
secrets: inherit
if: ${{ needs.get-diff.outputs.diff != '' }}

View file

@ -12,4 +12,5 @@ jobs:
uses: ./.github/workflows/build.yml
with:
projects: ${{ inputs.projects }}
ref: ${{ github.sha }}
secrets: inherit