-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (36 loc) · 944 Bytes
/
release.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
on:
workflow_call:
inputs:
workflow:
required: true
type: string
tool_version:
required: true
type: string
prepare_body:
required: true
type: string
artifacts:
required: true
type: string
secrets:
token:
required: true
jobs:
release:
runs-on: ubuntu-latest
steps:
- run: |
sudo apt update -y
sudo apt install -y libarchive-tools
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
- run: ${{ inputs.prepare_body }}
- uses: ncipollo/release-action@v1
with:
tag: "${{ inputs.workflow }}-${{ inputs.tool_version }}"
bodyFile: './body.md'
artifacts: ${{ inputs.artifacts }}
allowUpdates: true
removeArtifacts: true
token: ${{ secrets.GITHUB_TOKEN }}