-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use github-app for authenticating Validation workflow.
- Loading branch information
1 parent
96f067f
commit 0f8ca39
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,21 @@ jobs: | |
test: | ||
runs-on: macos-latest | ||
|
||
outputs: | ||
token: ${{ steps.app-token.outputs.token }} | ||
|
||
steps: | ||
- name: Generate Token | ||
id: app-token | ||
uses: actions/create-github-app-token@v1 | ||
with: | ||
app-id: ${{ vars.APPBAKERYGITHUBAPP_APPID }} | ||
private-key: ${{ secrets.APPBAKERYGITHUBAPP_PRIVATEKEY }} | ||
|
||
- name: Checkout design_system_flutter code. | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ steps.app-token.outputs.token }} | ||
|
||
- name: Parse flutter version and channel specified in .fvm into env vars. | ||
uses: kuhnroyal/flutter-fvm-config-action@v2 | ||
|
@@ -49,8 +61,17 @@ jobs: | |
changelog-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate Token | ||
id: app-token | ||
uses: actions/create-github-app-token@v1 | ||
with: | ||
app-id: ${{ vars.APPBAKERYGITHUBAPP_APPID }} | ||
private-key: ${{ secrets.APPBAKERYGITHUBAPP_PRIVATEKEY }} | ||
|
||
- name: Clone Repository. | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ steps.app-token.outputs.token }} | ||
|
||
- name: Read Changelog and validate. | ||
uses: mindsers/[email protected] | ||
|
@@ -70,6 +91,8 @@ jobs: | |
sdk: ["3.16.9", ""] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ needs.test.outputs.token }} | ||
|
||
- uses: subosito/flutter-action@v2 | ||
with: | ||
|
@@ -91,6 +114,7 @@ jobs: | |
name: app-profile.aab | ||
path: example/build/app/outputs/bundle/profile/ | ||
retention-days: 3 | ||
token: ${{ needs.test.outputs.token }} | ||
|
||
build-iOS: | ||
name: Build iOS package | ||
|
@@ -105,6 +129,8 @@ jobs: | |
sdk: ["3.16.9", ""] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ needs.test.outputs.token }} | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: ${{ matrix.sdk }} | ||
|
@@ -119,3 +145,4 @@ jobs: | |
name: fdsm-example.app | ||
path: example/build/ios/iphonesimulator | ||
retention-days: 3 | ||
token: ${{ needs.test.outputs.token }} |