Skip to content

Commit 9e9fa14

Browse files
committed
Attach status check to the triggering commit
1 parent aeeac92 commit 9e9fa14

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/deploy-prod.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ jobs:
4848
runs-on: ubuntu-latest
4949
if: github.event.workflow_run.conclusion == 'success'
5050
steps:
51+
- name: Set commit status as pending
52+
uses: myrotvorets/set-commit-status-action@v2.0.1
53+
with:
54+
sha: ${{ github.event.workflow_run.head_sha }}
55+
token: ${{ github.token }}
56+
5157
- name: Checkout repository
5258
uses: actions/checkout@v4
5359

@@ -71,3 +77,11 @@ jobs:
7177
publish_dir: public/${{ steps.get-pr-number.outputs.pr_number }}
7278
destination_dir: ${{ steps.get-pr-number.outputs.pr_number }}
7379
full_commit_message: "Preview for ${{ steps.get-pr-number.outputs.pr_number != 'main' && '#' || '' }}${{ steps.get-pr-number.outputs.pr_number }} (${{ github.event.workflow_run.head_sha }}) at https://gh.cp-algorithms.com/${{ steps.get-pr-number.outputs.pr_number }}/"
80+
81+
- name: Set final commit status
82+
uses: myrotvorets/set-commit-status-action@v2.0.1
83+
if: always()
84+
with:
85+
sha: ${{ github.event.workflow_run.head_sha }}
86+
token: ${{ github.token }}
87+
status: ${{ job.status }}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy