solana/.github/workflows/release-artifacts-auto.yml

40 lines
1.2 KiB
YAML
Raw Normal View History

name: release-artifacts-auto
on:
push:
branches:
- master
- v[0-9]+.[0-9]+
tags:
- v[0-9]+.[0-9]+.[0-9]+
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 }}
error_reporting:
needs:
- release-artifacts
if: failure() && github.event_name == 'push'
runs-on: ubuntu-20.04
steps:
- 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>",
}
]
}'