generated from friendly-fhir/go-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.26 KB
/
postsubmit.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Postsubmit
on:
workflow_call:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
permissions:
contents: read
security-events: write
id-token: write
actions: read
jobs:
build-and-test:
name: Build and Test
uses: friendly-fhir/.github/.github/workflows/go-build-and-test.yaml@master
with:
packages: ./...
go-version-file: go.mod
short-test: false
permissions:
contents: read
id-token: write
email-on-failure:
name: Email on Failure
runs-on: ubuntu-latest
needs:
- build-and-test
if: always() && failure()
continue-on-error: true
steps:
- name: Send email
uses: friendly-fhir/.github/actions/community/send-email@master
with:
recipient: [email protected]
api-key: ${{ secrets.MAILGUN_API_KEY }}
subject: ${{ github.repository}} Post-submit failed
body: |
The post-submit workflow for ${{ github.repository }} failed.
Please see ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} for details.