Skip to content

Commit 9aaddcf

Browse files
authored
Merge branch 'main' into main
2 parents 9986301 + 89b44d0 commit 9aaddcf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/deploy-prod.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ 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+
description: ${{ job.status }}
57+
5158
- name: Checkout repository
5259
uses: actions/checkout@v4
5360

@@ -71,3 +78,12 @@ jobs:
7178
publish_dir: public/${{ steps.get-pr-number.outputs.pr_number }}
7279
destination_dir: ${{ steps.get-pr-number.outputs.pr_number }}
7380
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 }}/"
81+
82+
- name: Set final commit status
83+
uses: myrotvorets/set-commit-status-action@v2.0.1
84+
if: always()
85+
with:
86+
sha: ${{ github.event.workflow_run.head_sha }}
87+
token: ${{ github.token }}
88+
status: ${{ job.status }}
89+
description: ${{ job.status }}

0 commit comments

Comments
 (0)