.github/workflows/ci.yml in rspec-sorbet-1.8.3 vs .github/workflows/ci.yml in rspec-sorbet-1.9.0
- old
+ new
@@ -1,7 +1,9 @@
---
name: Continuous Integration
+env:
+ SLACK_CHANNEL_ID: C0317P7C9C2
on:
push:
branches-ignore:
- refs/tags/*_staging
- refs/tags/*_production
@@ -36,12 +38,12 @@
- name: Post to Slack if build fails
if: failure() && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
|| github.ref == 'refs/heads/stable')
uses: pullreminders/slack-action@a5a262c896a1cc80dcbae59ba95513e2dfb21439
env:
- SLACK_BOT_TOKEN: "${{ secrets.SLACK_BOT_TOKEN }}"
+ SLACK_BOT_TOKEN: "${{ secrets.BELLROY_SLACK_TOKEN }}"
with:
- args: '{\"channel\":\"C33574SJJ\",\"text\":\"* ${{ github.repository }} BUILD
+ args: '{\"channel\":\"${{ env.SLACK_CHANNEL_ID }}\",\"text\":\"* ${{ github.repository }} BUILD
FAILURE*\", \"attachments\": [{ \"fallback\": \"Failure summary\", \"color\":
\"#ff0000\", \"fields\": [{\"title\": \"Branch\", \"value\":\"${{ steps.extract_branch.outputs.branch
}}\"}, {\"title\": \"Who broke it\", \"value\":\"${{ github.actor }}\"},
{ \"title\": \"Build output\", \"value\": \"https://github.com/${{ github.repository
}}/commit/${{ github.sha }}/checks\", \"short\": false }]}]}'