2022-05-13 02:10:03 -07:00
|
|
|
name: release-artifacts-auto
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- v[0-9]+.[0-9]+
|
|
|
|
tags:
|
2022-05-17 20:42:36 -07:00
|
|
|
- v[0-9]+.[0-9]+.[0-9]+
|
2022-05-13 02:10:03 -07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
release-artifacts:
|
|
|
|
uses: ./.github/workflows/release-artifacts.yml
|
|
|
|
with:
|
|
|
|
commit: ${{ github.sha }}
|
|
|
|
secrets:
|
|
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
|
|
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
|
2022-10-12 00:52:00 -07:00
|
|
|
|
2022-11-21 03:22:00 -08:00
|
|
|
error_reporting:
|
2022-10-12 00:52:00 -07:00
|
|
|
needs:
|
|
|
|
- release-artifacts
|
2022-11-21 03:22:00 -08:00
|
|
|
if: failure() && github.event_name == 'push'
|
|
|
|
runs-on: ubuntu-20.04
|
2022-10-12 00:52:00 -07:00
|
|
|
steps:
|
2022-11-21 03:22:00 -08:00
|
|
|
- name: Slack
|
|
|
|
run: |
|
|
|
|
curl -H "Content-Type: application/json" \
|
|
|
|
-X POST ${{ secrets.SLACK_ERROR_REPORTING_WEBHOOK }} \
|
|
|
|
-d '{
|
|
|
|
"attachments": [
|
|
|
|
{
|
|
|
|
"color": "#AC514C",
|
|
|
|
"text":
|
|
|
|
"*${{ github.repository }} (${{ github.workflow }})*\n${{ github.event.head_commit.message }} - _${{ github.event.head_commit.author.name }}_\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Build>",
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}'
|