-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.12 KB
/
example_github_uses.yaml
File metadata and controls
36 lines (34 loc) · 1.12 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
name: Example Github uses
run-name: Release ${{inputs.build-name}}
on:
workflow_dispatch:
inputs:
build-name:
description: 'Nome da versão (ex: 2.0.1)'
required: true
type: string
build-number:
description: 'Número da compilação [integer] (ex: 42)'
required: true
type: string
build-description:
description: 'Descrição curta (opicional)'
required: false
type: string
jobs:
create-release-from-tag:
name: Create release as pre-release using the tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create release
uses: emanuel-braz/github-actions/create-update-release@0.0.7
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: "Release ${{inputs.build-name}}+${{inputs.build-number}}"
tag: "${{inputs.build-name}}+${{inputs.build-number}}"
body: |
What's new?
${{inputs.build-description}}
---
Full Changelog: https://github.com/emanuel-braz/github-actions/compare/${{inputs.build-name}}+${{inputs.build-number}}...master