Skip to content

Commit

Permalink
conditions are broken
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Sep 14, 2024
1 parent 70200ed commit cc2f8d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
3 changes: 0 additions & 3 deletions .github/actions/vercel/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ outputs:
deployment_url:
description: The URL of the deployment
value: ${{ steps.deploy-preview.outputs.deployment_url || steps.deploy-production.outputs.deployment_url }}
exit_code:
description: Skip the deployment
value: ${{ steps.ignore-build.outputs.exit_code || inputs.force == 'true' }}

runs:
using: "composite"
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/deploy-docs-bundle-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
url: ${{ steps.deploy.outputs.deployment_url }}
outputs:
deployment_url: ${{ steps.deploy.outputs.deployment_url }}
exit_code: ${{ steps.deploy.outputs.exit_code }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -43,7 +42,7 @@ jobs:

deploy-dev:
needs: deploy # this will run after the deploy job to leverage turbo's build cache
if: needs.deploy.outputs.exit_code
if: needs.deploy.outputs.deployment_url
runs-on: ubuntu-latest
environment:
name: Preview - app-dev.buildwithfern.com
Expand Down Expand Up @@ -97,7 +96,7 @@ jobs:

ete:
needs: deploy
if: needs.deploy.outputs.exit_code
if: needs.deploy.outputs.deployment_url
runs-on: ubuntu-latest
permissions: write-all
steps:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/deploy-docs-bundle-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
url: ${{ steps.deploy.outputs.deployment_url }}
outputs:
deployment_url: ${{ steps.deploy.outputs.deployment_url }}
exit_code: ${{ steps.deploy.outputs.exit_code }}
env:
VERCEL_PROJECT_ID: prj_QX3venU6jwRUmdt8ArfL8AU5r1d4
steps:
Expand All @@ -46,7 +45,6 @@ jobs:
url: ${{ steps.deploy.outputs.deployment_url }}
outputs:
deployment_url: ${{ steps.deploy.outputs.deployment_url }}
exit_code: ${{ steps.deploy.outputs.exit_code }}
env:
VERCEL_PROJECT_ID: prj_SfgTTzw7KefTMuVWsL5uhY8Y4BIt
steps:
Expand All @@ -70,7 +68,6 @@ jobs:
url: ${{ steps.deploy.outputs.deployment_url }}
outputs:
deployment_url: ${{ steps.deploy.outputs.deployment_url }}
exit_code: ${{ steps.deploy.outputs.exit_code }}
env:
VERCEL_PROJECT_ID: prj_GGc6CEzrWNyUK0hq1UK7KmbgUmZn
steps:
Expand All @@ -88,7 +85,7 @@ jobs:

ete:
needs: deploy_app_buildwithfern_com
if: needs.deploy_app_buildwithfern_com.outputs.exit_code
if: needs.deploy_app_buildwithfern_com.outputs.deployment_url
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -116,7 +113,6 @@ jobs:
- ${{ needs.deploy_app_buildwithfern_com.outputs.deployment_url }}
- ${{ needs.deploy_app_ferndocs_com.outputs.deployment_url }}
- ${{ needs.deploy_app-slash_ferndocs_com.outputs.deployment_url }}
if: needs.deploy_app_buildwithfern_com.outputs.exit_code && needs.deploy_app_ferndocs_com.outputs.exit_code && needs.deploy_app-slash_ferndocs_com.outputs.exit_code
steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit cc2f8d6

Please sign in to comment.