-
Notifications
You must be signed in to change notification settings - Fork 15
46 lines (39 loc) · 1.45 KB
/
Copy pathtrigger_release_build.yml
File metadata and controls
46 lines (39 loc) · 1.45 KB
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
# This is a basic workflow to help you get started with Actions
name: Release on Webhook
on:
workflow_dispatch:
inputs:
tag-name:
description: Tag-Name or Version
required: true
pre-release:
description: Pre-release ?
required: true
default: 'true'
draft:
description: Draft ?
required: true
default: 'false'
jobs:
check:
name: Check and Trigger the "Build/ Publish" Action
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
uploadURL: ${{ steps.create_release.outputs.upload_url }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Declare some variables
id: vars
shell: bash
run: |
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Invoke workflow "build_and_publish" with inputs
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Build & Publish to Repo
token: ${{ secrets.NIGHTLY_TOKEN }}
ref: ${{ steps.vars.outputs.branch }}
inputs: '{"nightly": "false", "tag-name": "${{ github.event.inputs.tag-name }}", "commitish": "${{ github.sha }}", "release-name": "Release V${{ github.event.inputs.tag-name }}", "pre-release": "${{ github.event.inputs.pre-release }}", "draft": "${{ github.event.inputs.draft }}" }'