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