Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,17 @@ inputs:
runs:
using: composite
steps:
- uses: 8398a7/action-slack@1750b5085f3ec60384090fb7c52965ef822e869e
- uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3
name: Job failed Slack notification
with:
status: custom
fields: workflow, repo
custom_payload: |
webhook: ${{ inputs.SLACK_WEBHOOK }}
webhook-type: incoming-webhook
payload: |
{
channel: '${{ inputs.CHANNEL }}',
attachments: [{
color: "#DB4545",
pretext: `<!subteam^S4TJJ3PSL>`,
text: `💥 ${process.env.AS_REPO} failed on <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.workflow }}> workflow 💥`,
"channel": "${{ inputs.CHANNEL }}",
"attachments": [{
"color": "#DB4545",
"pretext": "<!subteam^S4TJJ3PSL>",
"text": "💥 ${{ github.repository }} failed on <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.workflow }}> workflow 💥"
}]
}
env:
GITHUB_TOKEN: ${{ github.token }}
SLACK_WEBHOOK_URL: ${{ inputs.SLACK_WEBHOOK }}
22 changes: 10 additions & 12 deletions .github/workflows/androidBump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- name: Setup Ruby
# v1.229.0
uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252
uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f
with:
bundler-cache: true

Expand Down Expand Up @@ -53,18 +53,16 @@ jobs:
- name: Warn deployers if Android rollout percentage could not be updated
if: ${{ failure() }}
# v3
uses: 8398a7/action-slack@1750b5085f3ec60384090fb7c52965ef822e869e
uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3
with:
status: custom
custom_payload: |
webhook: ${{ secrets.SLACK_WEBHOOK }}
webhook-type: incoming-webhook
payload: |
{
channel: '#deployer',
attachments: [{
color: "#DB4545",
pretext: `<!subteam^S4TJJ3PSL>`,
text: `💥 Android rollout percentage could not be updated. <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Run> 💥`,
"channel": "#deployer",
"attachments": [{
"color": "#DB4545",
"pretext": "<!subteam^S4TJJ3PSL>",
"text": "💥 Android rollout percentage could not be updated. <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Run> 💥"
}]
}
env:
GITHUB_TOKEN: ${{ github.token }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
4 changes: 2 additions & 2 deletions .github/workflows/buildAndroid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:

- name: Setup Java
# v4
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654
with:
distribution: oracle
java-version: ${{ steps.get-java-version.outputs.version }}
Expand All @@ -143,7 +143,7 @@ jobs:
- name: Load Android upload keystore credentials from 1Password
id: load-credentials
# v3
uses: 1password/load-secrets-action@8d0d610af187e78a2772c2d18d627f4c52d3fbfb
uses: 1password/load-secrets-action@92467eb28f72e8255933372f1e0707c567ce2259
with:
export-env: false
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/buildIOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:

- name: Setup Ruby
# v1.229.0
uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252
uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f
with:
bundler-cache: true

Expand Down
94 changes: 42 additions & 52 deletions .github/workflows/cherryPick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,19 +240,18 @@ jobs:

- name: Warn that previous deploy was superseded
if: ${{ steps.cherryPick.outputs.HAS_CONFLICTS != 'true' && steps.checkInProgressDeploy.outputs.DEPLOY_RUN_URL != '' }}
uses: 8398a7/action-slack@1750b5085f3ec60384090fb7c52965ef822e869e
uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3
with:
status: custom
custom_payload: |
webhook: ${{ secrets.SLACK_WEBHOOK }}
webhook-type: incoming-webhook
payload: |
{
channel: '#deployer',
attachments: [{
color: 'warning',
text: `⚠️ ${{ inputs.TARGET == 'production' && 'Production' || 'Staging' }} <${{ steps.checkInProgressDeploy.outputs.DEPLOY_RUN_URL }}|deploy> cancelled by new cherry-pick`
"channel": "#deployer",
"attachments": [{
"color": "warning",
"text": "⚠️ ${{ inputs.TARGET == 'production' && 'Production' || 'Staging' }} <${{ steps.checkInProgressDeploy.outputs.DEPLOY_RUN_URL }}|deploy> cancelled by new cherry-pick"
}]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

- name: Find deploy workflow run
# Also runs for version-bump-only CPs where HAS_CONFLICTS is unset
Expand Down Expand Up @@ -296,20 +295,18 @@ jobs:
- name: Announce successful CP in #deployer
# Also runs for version-bump-only CPs where HAS_CONFLICTS is unset
if: ${{ steps.cherryPick.outputs.HAS_CONFLICTS != 'true' }}
uses: 8398a7/action-slack@1750b5085f3ec60384090fb7c52965ef822e869e
uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3
with:
status: custom
custom_payload: |
webhook: ${{ secrets.SLACK_WEBHOOK }}
webhook-type: incoming-webhook
payload: |
{
channel: '#deployer',
attachments: [{
color: 'good',
text: `🍒 Cherry-pick to *${{ inputs.TARGET }}* successfully started\nPR: ${{ inputs.PULL_REQUEST_URL || '(version bump only)' }}\nDeploy workflow: ${{ steps.findDeployRun.outputs.DEPLOY_RUN_MESSAGE }}`
"channel": "#deployer",
"attachments": [{
"color": "good",
"text": "🍒 Cherry-pick to *${{ inputs.TARGET }}* successfully started\nPR: ${{ inputs.PULL_REQUEST_URL || '(version bump only)' }}\nDeploy workflow: ${{ steps.findDeployRun.outputs.DEPLOY_RUN_MESSAGE }}"
}]
}
env:
GITHUB_TOKEN: ${{ github.token }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

- name: Write workflow summary
# Also runs for version-bump-only CPs where HAS_CONFLICTS is unset
Expand Down Expand Up @@ -423,21 +420,19 @@ jobs:

- name: Announce CP conflict in #deployer
if: steps.cherryPick.outputs.HAS_CONFLICTS == 'true'
uses: 8398a7/action-slack@1750b5085f3ec60384090fb7c52965ef822e869e
uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3
with:
status: custom
custom_payload: |
webhook: ${{ secrets.SLACK_WEBHOOK }}
webhook-type: incoming-webhook
payload: |
{
channel: '#deployer',
attachments: [{
color: "#DB4545",
pretext: `${{ steps.resolveSlack.outputs.SLACK_MENTION }}`,
text: "🚨 Cherry-pick to ${{ inputs.TARGET }} has conflicts and requires manual resolution.\nOriginal PR: ${{ inputs.PULL_REQUEST_URL }}\nConflict PR: ${{ steps.createPullRequest.outputs.PR_URL }}"
"channel": "#deployer",
"attachments": [{
"color": "#DB4545",
"pretext": "${{ steps.resolveSlack.outputs.SLACK_MENTION }}",
"text": "🚨 Cherry-pick to ${{ inputs.TARGET }} has conflicts and requires manual resolution.\nOriginal PR: ${{ inputs.PULL_REQUEST_URL }}\nConflict PR: ${{ steps.createPullRequest.outputs.PR_URL }}"
}]
}
env:
GITHUB_TOKEN: ${{ github.token }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

- name: Add assignees to conflict PRs
if: steps.cherryPick.outputs.HAS_CONFLICTS == 'true'
Expand All @@ -455,37 +450,32 @@ jobs:
GITHUB_TOKEN: ${{ secrets.OS_BOTIFY_TOKEN }}

- name: "Announces a CP failure in the #announce Slack room"
# v3
uses: 8398a7/action-slack@1750b5085f3ec60384090fb7c52965ef822e869e
uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3
if: ${{ failure() }}
with:
status: custom
custom_payload: |
webhook: ${{ secrets.SLACK_WEBHOOK }}
webhook-type: incoming-webhook
payload: |
{
channel: '#announce',
attachments: [{
color: "#DB4545",
pretext: `<!subteam^S4TJJ3PSL>`,
text: `💥 Failed to CP ${{ inputs.PULL_REQUEST_URL }} to ${{ inputs.TARGET }} 💥`,
"channel": "#announce",
"attachments": [{
"color": "#DB4545",
"pretext": "<!subteam^S4TJJ3PSL>",
"text": "💥 Failed to CP ${{ inputs.PULL_REQUEST_URL }} to ${{ inputs.TARGET }} 💥"
}]
}
env:
GITHUB_TOKEN: ${{ github.token }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

- name: "Announce CP cancellation in #deployer"
uses: 8398a7/action-slack@1750b5085f3ec60384090fb7c52965ef822e869e
uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3
if: ${{ cancelled() }}
with:
status: custom
custom_payload: |
webhook: ${{ secrets.SLACK_WEBHOOK }}
webhook-type: incoming-webhook
payload: |
{
channel: '#deployer',
attachments: [{
color: 'warning',
text: `🍒 Cherry-pick to *${{ inputs.TARGET }}* was cancelled\nPR: ${{ inputs.PULL_REQUEST_URL || '(version bump only)' }}\nWorkflow run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}`
"channel": "#deployer",
"attachments": [{
"color": "warning",
"text": "🍒 Cherry-pick to *${{ inputs.TARGET }}* was cancelled\nPR: ${{ inputs.PULL_REQUEST_URL || '(version bump only)' }}\nWorkflow run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}]
}
env:
GITHUB_TOKEN: ${{ github.token }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
2 changes: 1 addition & 1 deletion .github/workflows/claude-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:

- name: Filter paths
if: steps.set-authorized.outputs.IS_AUTHORIZED == 'true'
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
id: filter
with:
filters: |
Expand Down
Loading
Loading