28 lines
724 B
YAML
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 }}"
|