Skip to content

Commit e9614c6

Browse files
authored
fix: reusable workflow (#10)
* reusable workflow * fix: client fix
1 parent e9bc2b0 commit e9614c6

File tree

4 files changed

+17
-21
lines changed

4 files changed

+17
-21
lines changed

.github/workflows/release-das-client-android.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,15 @@
44
name: release-das-client-android
55

66
on:
7-
pull_request_target:
8-
types:
9-
- closed
10-
branches:
11-
- main
7+
workflow_call:
128

139
permissions:
1410
contents: write
1511
packages: write
1612

1713
jobs:
1814
prepare:
19-
if: (github.event.pull_request.merged && contains( github.event.pull_request.labels.*.name, 'release:das_client'))
20-
runs-on: macos-latest
15+
runs-on: ubuntu-latest
2116
concurrency:
2217
group: release-das-client-android
2318
defaults:

.github/workflows/release-das-client-ios.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,15 @@
44
name: release-das-client-ios
55

66
on:
7-
pull_request_target:
8-
types:
9-
- closed
10-
branches:
11-
- main
7+
workflow_call:
128

139
permissions:
1410
contents: write
1511
packages: write
1612

1713
jobs:
1814
prepare:
19-
if: (github.event.pull_request.merged && contains( github.event.pull_request.labels.*.name, 'release:das_client'))
20-
runs-on: macos-latest
15+
runs-on: ubuntu-latest
2116
concurrency:
2217
group: release-das-client-ios
2318
defaults:

.github/workflows/release-please.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
release-please:
1515
runs-on: ubuntu-latest
1616
outputs:
17+
das_client--release_created: ${{ steps.release.outputs.das_client--release_created }}
18+
das_client--version: ${{ steps.release.outputs.das_client--version }}
19+
das_client--tag_name: ${{ steps.release.outputs.das_client--tag_name }}
1720
sfera_mock--release_created: ${{ steps.release.outputs.sfera_mock--release_created }}
1821
sfera_mock--version: ${{ steps.release.outputs.sfera_mock--version }}
1922
sfera_mock--tag_name: ${{ steps.release.outputs.sfera_mock--tag_name }}
@@ -24,19 +27,21 @@ jobs:
2427
das_playground--version: ${{ steps.release.outputs.das_playground--version }}
2528
das_playground--tag_name: ${{ steps.release.outputs.das_playground--tag_name }}
2629
steps:
27-
# - name: Generate token for SBB DAS Github app # allows triggering subsequent workflows
28-
# id: app-token
29-
# uses: actions/create-github-app-token@v1
30-
# with:
31-
# app-id: ${{ vars.DASGITHUBAPP_APPID }}
32-
# private-key: ${{ secrets.DASGITHUBAPP_PRIVATKEY }}
33-
3430
- uses: googleapis/release-please-action@v4
3531
id: release
3632
with:
3733
config-file: ci/release-please-config.json
3834
manifest-file: ci/.release-please-manifest.json
3935

36+
das_client-release-android:
37+
needs: release-please
38+
if: needs.release-please.outputs.das_client--release_created
39+
uses: ./.github/workflows/release-das-client-android.yml
40+
41+
das_client-release-ios:
42+
needs: release-please
43+
if: needs.release-please.outputs.das_client--release_created
44+
uses: ./.github/workflows/release-das-client-ios.yml
4045

4146
sfera_mock-release:
4247
needs: release-please

das_client/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ DAS (Driver Advisory System) is a mobile application that provides all the requi
55
Big feature change! Second Feature.
66
thrid feature - some thing that was forgotten
77
first fix
8+
second fix
89

910
## Supported platforms
1011

0 commit comments

Comments
 (0)