-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1.02 KB
/
manual-release.yml
File metadata and controls
38 lines (35 loc) · 1.02 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
name: '✋ Manual Release'
on:
workflow_call:
secrets:
token:
required: true
jobs:
get-next-version:
name: 🏷️ Get next version
runs-on: ubuntu-latest
outputs:
new_release_published: ${{ steps.get-next-version.outputs.new_release_published }}
steps:
- name: 📁 Checkout
uses: actions/checkout@v4
- name: 🏷️ Get next version
id: get-next-version
uses: aproorg/github-workflows/.github/actions/get-next-version@main
with:
github_token: ${{ secrets.token }}
publish:
needs:
- get-next-version
name: ⏯️ Publish new release
if: ${{ needs.get-next-version.outputs.new_release_published == 'true' }}
runs-on: ubuntu-latest
steps:
- name: 📁 Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: ⏯️ Publish new release
uses: aproorg/github-workflows/.github/actions/github-release@main
with:
github_token: ${{ secrets.token }}