inputs
This commit is contained in:
14
action.yml
14
action.yml
@@ -1,6 +1,14 @@
|
|||||||
name: Publish package
|
name: Publish package
|
||||||
description: build and publish an Arch package
|
description: build and publish an Arch package
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
username:
|
||||||
|
description: 'Gitea username'
|
||||||
|
required: true
|
||||||
|
token:
|
||||||
|
description: 'Gitea PAT'
|
||||||
|
required: true
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
@@ -31,7 +39,7 @@ runs:
|
|||||||
- name: sanity check
|
- name: sanity check
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if [ -z "${{ secrets.USERNAME }}" ]; then
|
if [ -z "${{ inputs.username }}" ]; then
|
||||||
echo "❌ Secret not set!"
|
echo "❌ Secret not set!"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
@@ -41,5 +49,5 @@ runs:
|
|||||||
- name: Build package
|
- name: Build package
|
||||||
uses: https://git.sanin.dev/packages_test/build-publish/@build
|
uses: https://git.sanin.dev/packages_test/build-publish/@build
|
||||||
with:
|
with:
|
||||||
username: "${{ secrets.USERNAME }}"
|
username: "${{ inputs.username }}"
|
||||||
token: ${{ secrets.TOKEN }}
|
token: ${{ inputs.token }}
|
||||||
|
|||||||
Reference in New Issue
Block a user