forked from naskio/docker-strapi
-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (33 loc) · 1.06 KB
/
manual-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
###################
# ENV VARS:
# - PAT (generated at Personal Access Tokens - with workflow access checked)
###################
name: Create new release manually
on:
workflow_dispatch:
inputs:
version:
description: 'version'
required: true
default: '4.25.0'
type: string
jobs:
get-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
- name: Fetch v4 release version
id: fetch-v4-version
if: startsWith(github.event.inputs.version, '4')
run: |
echo "${{ github.event.inputs.version }}" > release-versions/strapi-v4-latest.txt
- name: Fetch v5 release version
id: fetch-v5-version
if: startsWith(github.event.inputs.version, '5')
run: |
echo "${{ github.event.inputs.version }}" > release-versions/strapi-v5-latest.txt
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: New manual release ${{ github.event.inputs.version }}