From 53bf2f2b346a03f8b02d70e365edb9e2ba1ea74c Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Mon, 14 Apr 2025 11:57:08 +0200 Subject: [PATCH] Ajouter action.yaml --- action.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 action.yaml diff --git a/action.yaml b/action.yaml new file mode 100644 index 0000000..f4e32a2 --- /dev/null +++ b/action.yaml @@ -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 }}"