From d47ac602197a1a9bb35edfc4e5936d3f47acf0e0 Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Fri, 5 Jan 2024 21:35:48 +0100 Subject: [PATCH] dci.yml: Maybe Schedule a DCI Job --- .github/workflows/dci.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/dci.yml b/.github/workflows/dci.yml index 3fd09d6ce..aae51880a 100644 --- a/.github/workflows/dci.yml +++ b/.github/workflows/dci.yml @@ -7,18 +7,13 @@ on: jobs: dci-job: - name: "DCI Job" + name: "Maybe Schedule a DCI Job" runs-on: bos2 steps: - - name: Add a dci-check-change job to the queue + - name: Maybe call dci-check-change run: | set -x - URL="${{ github.event.pull_request._links.self.href }}" - if curl -s -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ github.token }}" -H "X-GitHub-Api-Version: 2022-11-28" "${URL}/files"|jq -r .[].filename| grep -E 'roles/|plugins/'; then - dci-check-change --silent ${{ github.event.pull_request.html_url }} - else - echo "No code change" - fi + maybe-dci-check-change ${{ github.event.pull_request.html_url }} ...