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