Skip to content

Commit abfeda5

Browse files
committed
Automatically check licenses and request review for target updates
If there are updates to the target contents there is some chance we need a review. This now adds a job that when a PR is created or updated calls the license check workflow together with a review request.
1 parent cb9a733 commit abfeda5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/updateTarget.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
-Ddiscovery=parent
4040
-Dmaven.version.rules=update-rules.xml
4141
- name: Create Pull Request
42+
id: create-pr
4243
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
4344
with:
4445
commit-message: Update target-platform with latest version
@@ -52,3 +53,11 @@ jobs:
5253
author: Eclipse Releng Bot <[email protected]>
5354
add-paths: |
5455
**/*.target
56+
- name: Check license vetting status and ask for review if required
57+
if: ${{ steps.create-pr.outputs.pull-request-operation == 'created' }} || ${{ steps.create-pr.outputs.pull-request-operation }} == 'updated'
58+
uses: eclipse-dash/dash-licenses/.github/actions/maven-license-check-action@master
59+
with:
60+
request-review: true
61+
project-id: eclipse.platform
62+
env:
63+
GITLAB_API_TOKEN: ${{ secrets.ECLIPSE_GITLAB_API_TOKEN }}

0 commit comments

Comments
 (0)