From 21b2b860ae61bc1803601e60b0ed8924672b403a Mon Sep 17 00:00:00 2001 From: Piasecki-grid Date: Fri, 11 Apr 2025 08:55:23 +0200 Subject: [PATCH] adding test workflows for reusable workflow --- .github/workflows/caller-1.yml | 8 ++++++++ .github/workflows/reusable-1.yml | 21 +++++++++++++++++++++ .github/workflows/reusable-2.yml | 1 + 3 files changed, 30 insertions(+) create mode 100644 .github/workflows/caller-1.yml create mode 100644 .github/workflows/reusable-1.yml create mode 100644 .github/workflows/reusable-2.yml diff --git a/.github/workflows/caller-1.yml b/.github/workflows/caller-1.yml new file mode 100644 index 000000000..1db8c6252 --- /dev/null +++ b/.github/workflows/caller-1.yml @@ -0,0 +1,8 @@ +name: Successfull merge pipeline + +on: + workflow_dispatch: + push: +jobs: + call-reusable-workflow-1-in-local-repo: + uses: ./.github/workflows/reusable-1.yml \ No newline at end of file diff --git a/.github/workflows/reusable-1.yml b/.github/workflows/reusable-1.yml new file mode 100644 index 000000000..d326cb103 --- /dev/null +++ b/.github/workflows/reusable-1.yml @@ -0,0 +1,21 @@ +name: Reusable workflow example + +on: + workflow_call: + inputs: + config-path: + required: true + type: string + description: "A taki o description" + secrets: + token: + required: true + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v4 + with: + repo-token: ${{ secrets.token }} + configuration-path: ${{ inputs.config-path }} \ No newline at end of file diff --git a/.github/workflows/reusable-2.yml b/.github/workflows/reusable-2.yml new file mode 100644 index 000000000..4287ca861 --- /dev/null +++ b/.github/workflows/reusable-2.yml @@ -0,0 +1 @@ +# \ No newline at end of file