|
9 | 9 | - .github/** |
10 | 10 |
|
11 | 11 | jobs: |
| 12 | + notify-production-deploy-started: |
| 13 | + name: Notify Production Deploy Started |
| 14 | + # No needs, so this lands within seconds of the push. Knowing a deploy is |
| 15 | + # in flight is only useful while it still is. |
| 16 | + runs-on: ubuntu-latest |
| 17 | + permissions: |
| 18 | + # Enough to resolve the local action below. |
| 19 | + contents: read |
| 20 | + |
| 21 | + steps: |
| 22 | + - name: Cloning repo |
| 23 | + uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0 |
| 24 | + with: |
| 25 | + # Nothing runs git after this, so the token need not persist. |
| 26 | + persist-credentials: false |
| 27 | + |
| 28 | + - name: Notify Slack |
| 29 | + # A Slack outage must not hold up a deploy. |
| 30 | + continue-on-error: true |
| 31 | + uses: ./.github/actions/notify-slack-deploy |
| 32 | + with: |
| 33 | + webhook_url: ${{ secrets.SLACK_FRONTEND_DEPLOY_WEBHOOK }} |
| 34 | + service: Frontend |
| 35 | + app_url: https://app.flagsmith.com |
| 36 | + state: in_progress |
| 37 | + commit_sha: ${{ github.sha }} |
| 38 | + actor: ${{ github.actor }} |
| 39 | + run_url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} |
| 40 | + |
12 | 41 | run-unit-tests: |
13 | 42 | runs-on: ubuntu-latest |
14 | 43 | name: Run Unit Tests |
@@ -136,7 +165,7 @@ jobs: |
136 | 165 | webhook_url: ${{ secrets.SLACK_FRONTEND_DEPLOY_WEBHOOK }} |
137 | 166 | service: Frontend |
138 | 167 | app_url: https://app.flagsmith.com |
139 | | - conclusion: ${{ steps.outcome.outputs.conclusion }} |
| 168 | + state: ${{ steps.outcome.outputs.conclusion }} |
140 | 169 | commit_sha: ${{ github.sha }} |
141 | 170 | actor: ${{ github.actor }} |
142 | 171 | run_url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} |
|
0 commit comments