From 45e68e0ac64b8a84956522da28b778a95063d5ee Mon Sep 17 00:00:00 2001 From: Ethan Price <99197915+eprice555@users.noreply.github.com> Date: Wed, 8 May 2024 15:27:02 -0500 Subject: [PATCH] Create labeler.yml This is a test --- .github/workflows/labeler.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/labeler.yml diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..5f2ab504f --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,25 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - id: label-the-PR + uses: actions/labeler@v5 + + - id: run-frontend-tests + if: contains(steps.label-the-PR.outputs.all-labels, 'frontend') + run: | + echo "Running frontend tests..." + # Put your commands for running frontend tests here + + - id: run-backend-tests + if: contains(steps.label-the-PR.outputs.all-labels, 'backend') + run: | + echo "Running backend tests..." + # Put your commands for running backend tests here