This commit is contained in:
Barrett Ruth 2026-01-22 13:42:26 -05:00
parent b29c120ef8
commit 6fab791fac
2 changed files with 4 additions and 6 deletions

View file

@ -4,7 +4,6 @@ on:
branches: [main]
push:
branches: [main]
jobs:
ci:
runs-on: ubuntu-latest

View file

@ -1,18 +1,17 @@
name: deploy
on:
workflow_run:
workflows: ["CI"]
workflows: ["ci"]
types:
- completed
jobs:
deploy:
if: >
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.pull_requests[0].base.ref == 'main'
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_sha }}
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with: