mirror of
https://github.com/armbian/scripts.git
synced 2026-01-06 10:32:48 -08:00
Add support for script exec
This commit is contained in:
12
.github/workflows/pack-debian.yml
vendored
12
.github/workflows/pack-debian.yml
vendored
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user