From 9eb2c6df996482e1d6ff0914db0da914d18b256e Mon Sep 17 00:00:00 2001 From: Mark Date: Wed, 9 Oct 2024 20:43:27 -0400 Subject: [PATCH] ci(github): create reusable-workflow.yml https://docs.github.com/en/actions/sharing-automations/reusing-workflows#example-reusable-workflow --- .github/workflows/reusable-workflow.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/reusable-workflow.yml diff --git a/.github/workflows/reusable-workflow.yml b/.github/workflows/reusable-workflow.yml new file mode 100644 index 0000000..e7c7152 --- /dev/null +++ b/.github/workflows/reusable-workflow.yml @@ -0,0 +1,16 @@ +# https://docs.github.com/en/actions/sharing-automations/reusing-workflows#example-reusable-workflow +name: Reusable workflow + +on: + workflow_call: + inputs: + message: + required: true + type: string + +jobs: + reusable-workflow: + runs-on: ubuntu-latest + steps: + - name: Print "${{ inputs.message }}" + run: echo ${{ inputs.message }}