Skip to content

Commit 54140e5

Browse files
committed
refactor: enhance pull request triggers and reorganize job definitions in build workflow
1 parent 1423b2e commit 54140e5

1 file changed

Lines changed: 21 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build on every push
22

33
on:
44
pull_request:
5-
types: [opened, synchronize, reopened]
5+
types: [opened, synchronize, reopened, ready_for_review, converted_to_draft, labeled, unlabeled]
66
paths-ignore: &docs-and-assets
77
- '**/*.md'
88
- '**/*.png'
@@ -22,7 +22,13 @@ concurrency:
2222
group: ${{ github.workflow }}-${{ github.ref }}
2323
cancel-in-progress: true
2424

25+
permissions:
26+
contents: read
27+
pull-requests: read
28+
2529
jobs:
30+
version:
31+
uses: walt-id/waltid-identity/.github/workflows/version.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
2632
android-eligibility:
2733
uses: ./.github/workflows/android-eligibility.yml
2834
with:
@@ -32,8 +38,20 @@ jobs:
3238
pr-head-repo: ${{ github.event.pull_request.head.repo.full_name || '' }}
3339
pr-labels: ${{ toJson(github.event.pull_request.labels.*.name) }}
3440
pr-draft: ${{ github.event.pull_request.draft || false }}
35-
version:
36-
uses: walt-id/waltid-identity/.github/workflows/version.yml@6bb27c98fb66d9525dcc5ed8b0e703ff07a18c4a
41+
macos-eligibility:
42+
uses: ./.github/workflows/macos-eligibility.yml
43+
with:
44+
event-name: ${{ github.event_name }}
45+
ref: ${{ github.ref }}
46+
pr-number: ${{ github.event.pull_request.number || '' }}
47+
pr-head-repo: ${{ github.event.pull_request.head.repo.full_name || '' }}
48+
pr-labels: ${{ toJson(github.event.pull_request.labels.*.name) }}
49+
pr-draft: ${{ github.event.pull_request.draft || false }}
50+
sdk-docs:
51+
uses: ./.github/workflows/mobile-sdk-docs.yml
52+
needs: macos-eligibility
53+
if: ${{ needs.macos-eligibility.outputs.should-run == 'true' }}
54+
secrets: inherit
3755
gradle-build:
3856
uses: walt-id/waltid-identity/.github/workflows/gradle.yml@0601e9b457f63238dfbc2a9a4fa54b7b1aee0a9d
3957
secrets: inherit

0 commit comments

Comments
 (0)