Skip to content

Commit

Permalink
dci.yml: Maybe Schedule a DCI Job
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericlepied committed Jan 5, 2024
1 parent 74bf6bb commit d47ac60
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/dci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
...

0 comments on commit d47ac60

Please sign in to comment.