-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.72 KB
/
release.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
name: SFTI Release
on:
workflow_dispatch:
inputs:
version:
description: "Release version tag (required format: v[mayor].[minor].[bugfix], e.g. v1.3.0)"
type: string
required: true
draft:
description: Should a release draft be created? (Otherwise the release will be published immediately)
type: boolean
default: true
required: true
artifact:
description: Add artifacts to the release. All files from the provided folder(s) are added to the release. Folders or files are seperated by a single whitespace (e.g. file.txt folder/). **Do not use docs/**.
type: string
default: ''
required: false
force:
description: "If force is true, already published releases can be overwritten. Caution: This action deletes already published releases and can **not** be undone!"
type: boolean
required: false
jobs:
check-permissions:
runs-on: ubuntu-latest
steps:
- name: Check user permission
id: param_check
run: |
if [[ "${{ github.actor }}" != "svenbiellmann" && "${{ github.actor }}" != "RaulGuirao" && "${{ github.actor }}" != "dkoeni" && "${{ github.actor }}" != "juergen-petry" ]]; then
echo "You have no permissons to start the release action."
exit 1
fi
release:
needs: check-permissions
uses: swissfintechinnovations/.github/.github/workflows/reusable-release-workflow.yaml@main
with:
version: ${{ github.event.inputs.version }}
draft: ${{ fromJSON(github.event.inputs.draft) }}
artifact: ${{ fromJSON(github.event.inputs.artifact) }}
force: ${{ fromJSON(github.event.inputs.force) }}
secrets: inherit