-
Notifications
You must be signed in to change notification settings - Fork 25
44 lines (39 loc) · 1.12 KB
/
new_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
37
38
39
40
41
42
43
44
name: Create new release
on:
workflow_dispatch:
inputs:
release_tag:
description: "Release tag"
required: true
release_name:
description: "Release name"
required: true
run-tests:
description: "Run all tests (true/false)"
required: true
jobs:
release:
runs-on: ubuntu-20.04
outputs:
url: ${{ steps.create_release.outputs.upload_url }}
steps:
- name: Release creation
uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.inputs.release_tag }}
release_name: ${{ github.event.inputs.release_name }}
body: |
Please complete description
- name: print output
id: print-output
run: "echo ${{ steps.create_release.outputs.upload_url }}"
shell: bash
ubuntu:
name: Release - Ubuntu
needs: release
uses: ./.github/workflows/ubuntu.yml
with:
run-tests: ${{ fromJSON(inputs.run-tests) }}