initial commit
This commit is contained in:
25
action.yml
Normal file
25
action.yml
Normal file
@ -0,0 +1,25 @@
|
||||
name: "Make SRCINFO"
|
||||
description: "Generate .SRCINFO file from PKGBUILD"
|
||||
inputs:
|
||||
pkgbuild-file:
|
||||
description: "Path to PKGBUILD file"
|
||||
srcinfo-file:
|
||||
description: "Path to .SRCINFO file to be created"
|
||||
default: ".SRCINFO"
|
||||
outputs:
|
||||
version:
|
||||
description: "Version of the package"
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: "Make SRCINFO"
|
||||
shell: bash
|
||||
run: "./mksrcinfo.sh $PKGBUILD_PATH > $SRCINFO_PATH"
|
||||
env:
|
||||
PKGBUILD_PATH: ${{ inputs.pkgbuild-file }}
|
||||
SRCINFO_PATH: ${{ inputs.srcinfo-file }}
|
||||
- name: "Get version"
|
||||
shell: bash
|
||||
run: "grep 'pkgver = ' $SRCINFO_PATH | sed 's/ = /=/' >> $GITHUB_OUTPUT"
|
||||
env:
|
||||
SRCINFO_PATH: ${{ inputs.srcinfo-file }}
|
||||
Reference in New Issue
Block a user