action testing
This commit is contained in:
parent
d0db6f4c97
commit
e9ad7a25bd
21
action.yml
Normal file
21
action.yml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
name: 'pack'
|
||||||
|
description: 'Use pack to upload a package'
|
||||||
|
inputs:
|
||||||
|
name:
|
||||||
|
description: 'the name of the upload'
|
||||||
|
required: true
|
||||||
|
filename:
|
||||||
|
description: 'the file to upload'
|
||||||
|
required: true
|
||||||
|
feature:
|
||||||
|
description: 'the feature to upload to, i.e docs, nightly'
|
||||||
|
required: true
|
||||||
|
extract:
|
||||||
|
description: 'whether to extract the file in to a folder'
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
|
runs:
|
||||||
|
steps:
|
||||||
|
- name: 'Upload file'
|
||||||
|
run: curl -X POST -F name=${{ inputs.name }} file=${{ inputs.filename }} data=@${{ inputs.filename }} ${{ vars.PACK_HOST }}/api/upload/${{ gitea.repository }}/${{ inputs.feature }}
|
||||||
|
shell: bash
|
||||||
Loading…
x
Reference in New Issue
Block a user