|
14 | 14 | - name: Checkout repository
|
15 | 15 | uses: actions/checkout@v4
|
16 | 16 |
|
| 17 | + - name: Attach run to the commit |
| 18 | + uses: ./.github/actions/set-commit-status |
| 19 | + with: |
| 20 | + sha: ${{ github.event.workflow_run.head_sha }} |
| 21 | + |
17 | 22 | - name: Download pages
|
18 | 23 | uses: actions/download-artifact@v4
|
19 | 24 | with:
|
@@ -44,20 +49,24 @@ jobs:
|
44 | 49 | projectId: cp-algorithms
|
45 | 50 | channelId: live
|
46 | 51 |
|
| 52 | + - name: Set final commit status |
| 53 | + uses: ./.github/actions/set-commit-status |
| 54 | + if: always() |
| 55 | + with: |
| 56 | + sha: ${{ github.event.workflow_run.head_sha }} |
| 57 | + |
47 | 58 | deploy_github_pages:
|
48 | 59 | runs-on: ubuntu-latest
|
49 | 60 | if: github.event.workflow_run.conclusion == 'success'
|
50 | 61 | 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 |
| - |
58 | 62 | - name: Checkout repository
|
59 | 63 | uses: actions/checkout@v4
|
60 | 64 |
|
| 65 | + - name: Attach run to the commit |
| 66 | + uses: ./.github/actions/set-commit-status |
| 67 | + with: |
| 68 | + sha: ${{ github.event.workflow_run.head_sha }} |
| 69 | + |
61 | 70 | - name: Download pages
|
62 | 71 | uses: actions/download-artifact@v4
|
63 | 72 | with:
|
|
80 | 89 | 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 | 90 |
|
82 | 91 | - name: Set final commit status
|
83 |
| - uses: myrotvorets/set-commit-status-action@v2.0.1 |
| 92 | + uses: ./.github/actions/set-commit-status |
84 | 93 | if: always()
|
85 | 94 | with:
|
86 | 95 | sha: ${{ github.event.workflow_run.head_sha }}
|
87 |
| - token: ${{ github.token }} |
88 |
| - status: ${{ job.status }} |
89 |
| - description: ${{ job.status }} |
|
0 commit comments