-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 998 Bytes
/
main.yml
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
name: Main
on:
push:
branches:
- main
jobs:
build:
permissions:
id-token: write
contents: read
uses: ./.github/workflows/base.yml
with:
image-tags: sha-${{ github.event.pull_request.head.sha }}
secrets:
gar-json-key: ${{ secrets.GAR_JSON_KEY }}
release-drafter:
runs-on: elisa-normal
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: elisa-actions/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
disable-releaser: false
disable-autolabeler: true
- name: Notify failure
if: failure()
env:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
MATTERMOST_TEXT: "${{ github.repository }} [${{ github.event.ref }}](${{ github.event.repository.html_url }}/tree/${{ github.event.ref }}) release failed."
run: |
send-to-mattermost