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:
parent
97cd9eebb3
commit
6fe622ddd0
25
.github/workflows/deploy_production.yml
vendored
25
.github/workflows/deploy_production.yml
vendored
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user