Files
bash-library/action.yaml

31 lines
784 B
YAML
Raw Normal View History

2025-04-14 11:57:08 +02:00
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'
2025-04-14 12:00:59 +02:00
gitea_branch:
required: false
default: 'main'
2025-04-14 11:57:08 +02:00
runs:
using: 'composite'
steps:
- name: Download bashlib.sh
shell: bash
run: |
source "${{ github.action_path }}/bashlib.sh"
check_command curl
curl -sSL \
2025-04-14 12:00:59 +02:00
'${{ inputs.gitea_server }}/${{ inputs.gitea_repository }}/raw/${{ inputs.branch }}/bashlib.sh' \
2025-04-14 11:57:08 +02:00
-o "${{ github.action_path }}/../${{ inputs.script }}"