From 05f9844726777196ac5f8553d329ca0e35e57598 Mon Sep 17 00:00:00 2001 From: Jesse Newland Date: Thu, 23 May 2024 17:02:09 +0000 Subject: [PATCH] add workflow --- .github/required.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/required.yml diff --git a/.github/required.yml b/.github/required.yml new file mode 100644 index 0000000..b6a1d43 --- /dev/null +++ b/.github/required.yml @@ -0,0 +1,30 @@ +# Create a Status named 'Required' that reports the observed conclusion of all +# matching WorkflowRuns on the same `head_sha` as the observed WorkflowRun. +name: Required + +on: + workflow_run: + workflows: + - Check Transpiled JavaScript + - Continuous Integration + - Lint Codebase + types: + - completed + +jobs: + success: + if: + contains(fromJSON('["merge_group", "pull_request"]'), + github.event.workflow_run.event) + name: Create appropriate status + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: ./ + with: + token: ${{ secrets.GITHUB_TOKEN }} + status-name: Required + must-succeed-if-run: | + Check Transpiled JavaScript + Continuous Integration + Lint Codebase