forked from go-nv/goenv
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 961 Bytes
/
pre_release.yml
File metadata and controls
38 lines (36 loc) · 961 Bytes
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: Pre Release
on:
workflow_dispatch:
inputs:
debug:
description: "Debug mode"
type: boolean
required: false
default: false
jobs:
do_prerelease:
if: github.repository_owner == 'go-nv'
strategy:
matrix:
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: master
token: ${{ secrets.GH_TOKEN }}
- name: Install JQ
run: sudo apt install jq
- name: Update App Version
run: |
if [[ "${{ github.event.inputs.debug }}" == "true" ]]; then
echo "Debug mode enabled"
./scripts/update_app_version.sh 2>&1 | tee -a debug.log
cat debug.log
else
./scripts/update_app_version.sh
fi
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
DEBUG: ${{ github.event.inputs.debug }}