Ajouter action.yaml
This commit is contained in:
27
action.yaml
Normal file
27
action.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
name: 'Load bashlib'
|
||||
description: 'Provides shared bash utilities'
|
||||
|
||||
inputs:
|
||||
script:
|
||||
description: "Name of the script file"
|
||||
required: false
|
||||
default: 'bashlib.sh'
|
||||
gitea_server:
|
||||
required: false
|
||||
default: 'https://gargoton.petite-maison-orange.fr'
|
||||
gitea_repository:
|
||||
required: false
|
||||
default: 'pmo-actions/bash-library'
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- name: Download bashlib.sh
|
||||
shell: bash
|
||||
run: |
|
||||
source "${{ github.action_path }}/bashlib.sh"
|
||||
check_command curl
|
||||
|
||||
curl -sSL \
|
||||
'${{ inputs.gitea_server }}/${{ inputs.gitea_repository }}/raw/branch/${{ inputs.script }}' \
|
||||
-o "${{ github.action_path }}/../${{ inputs.script }}"
|
||||
Reference in New Issue
Block a user