Add support for script exec

This commit is contained in:
Igor Pecovnik
2024-10-29 07:18:37 +01:00
parent a2f0dc7052
commit 7440a79bbb

View File

@@ -28,6 +28,9 @@ on:
priority:
required: false
type: string
compile:
required: false
type: string
description:
required: false
type: string
@@ -85,6 +88,13 @@ jobs:
id: releases
run: |
# run compilation script
cd source
if [[ -n "${{ inputs.compile }}" ]]; then
source/${{ inputs.compile }}
fi
cd ..
VERSION=$(cat os/stable.json | jq '.version' | sed "s/\"//g")"."$(date -u +'%m%d.%H%M%S')
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
ARCH=$(echo ${{ matrix.node }} | cut -d":" -f1)
@@ -243,4 +253,4 @@ jobs:
artifacts: "output/*.deb"
tag: "${{ needs.build.outputs.version }}"
name: "${{ needs.build.outputs.version }}"
token: "${{ secrets.GITHUB_TOKEN }}"
token: "${{ secrets.GITHUB_TOKEN }}"