Files
bash-library/action.yaml
2025-04-14 11:57:08 +02:00

28 lines
724 B
YAML

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 }}"