1
1
mirror of https://github.com/primer/css.git synced 2024-12-26 15:43:59 +03:00

We don't need to update status because there's no pr and we don't use deployments tab

This commit is contained in:
Jon Rohan 2021-04-06 08:23:37 -07:00
parent 97cd9eebb3
commit 6fe622ddd0
No known key found for this signature in database
GPG Key ID: B0BBE304A9A0AECB

View File

@ -20,14 +20,6 @@ jobs:
- id: changeset-count
run: echo "::set-output name=CHANGE_COUNT::$(ls .changeset/*.md | grep -v README | wc -l | xargs)"
- if: ${{ steps.changeset-count.outputs.CHANGE_COUNT == 0 }}
uses: chrnorm/deployment-action@releases/v1
name: Create GitHub deployment
id: deployment
with:
token: ${{ secrets.GITHUB_TOKEN }}
environment: Production
- if: ${{ steps.changeset-count.outputs.CHANGE_COUNT == 0 }}
name: Vercel Action
uses: amondnet/vercel-action@v20.0.0
@ -39,20 +31,3 @@ jobs:
github-comment: false
vercel-org-id: ${{ secrets.VERCEL_ORG_ID_SHARED }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
- name: Update deployment status (success)
if: success()
uses: chrnorm/deployment-status@releases/v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
environment_url: ${{ steps.vercel-action.outputs.preview-url }}
state: "success"
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
- name: Update deployment status (failure)
if: failure()
uses: chrnorm/deployment-status@releases/v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
state: "failure"
deployment_id: ${{ steps.deployment.outputs.deployment_id }}