Skip to content

Commit 1f8eea4

Browse files
laeubiakurtakov
authored andcommitted
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 7bc2aa7 commit 1f8eea4

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
@@ -50,6 +50,7 @@ jobs:
5050
mkdir -p target
5151
echo '## Everything is up to date' > target/targetUpdates.md
5252
- name: Create Pull Request
53+
id: create-pr
5354
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
5455
with:
5556
commit-message: Update target-platform with latest version
@@ -63,3 +64,11 @@ jobs:
6364
author: ${{ inputs.author }}
6465
add-paths: |
6566
**/*.target
67+
- name: Check license vetting status and ask for review if required
68+
if: ${{ steps.create-pr.outputs.pull-request-operation == 'created' }} || ${{ steps.create-pr.outputs.pull-request-operation }} == 'updated'
69+
uses: eclipse-dash/dash-licenses/.github/actions/maven-license-check-action@master
70+
with:
71+
request-review: true
72+
project-id: eclipse.platform
73+
env:
74+
GITLAB_API_TOKEN: ${{ secrets.ECLIPSE_GITLAB_API_TOKEN }}

0 commit comments

Comments
 (0)