Ajouter action.yaml

This commit is contained in:
2025-04-14 11:57:08 +02:00
commit 53bf2f2b34

27
action.yaml Normal file
View 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 }}"