Skip to content

Commit

Permalink
chore: update token usage in validate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
smallTrogdor authored Jun 6, 2024
1 parent 0f8ca39 commit faf3d5e
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ concurrency:
jobs:
test:
runs-on: macos-latest

outputs:
token: ${{ steps.app-token.outputs.token }}


steps:
- name: Generate Token
id: app-token
Expand All @@ -25,6 +22,7 @@ jobs:
app-id: ${{ vars.APPBAKERYGITHUBAPP_APPID }}
private-key: ${{ secrets.APPBAKERYGITHUBAPP_PRIVATEKEY }}


- name: Checkout design_system_flutter code.
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -57,6 +55,7 @@ jobs:
name: goldens
path: test/failures/
retention-days: 3
token: ${{ steps.app-token.outputs.token }}

changelog-test:
runs-on: ubuntu-latest
Expand All @@ -67,12 +66,12 @@ jobs:
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]
with:
Expand All @@ -90,9 +89,17 @@ jobs:
matrix:
sdk: ["3.16.9", ""]
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 }}


- uses: actions/checkout@v4
with:
token: ${{ needs.test.outputs.token }}
token: ${{ steps.app-token.outputs.token }}

- uses: subosito/flutter-action@v2
with:
Expand All @@ -114,7 +121,7 @@ jobs:
name: app-profile.aab
path: example/build/app/outputs/bundle/profile/
retention-days: 3
token: ${{ needs.test.outputs.token }}
token: ${{ steps.app-token.outputs.token }}

build-iOS:
name: Build iOS package
Expand All @@ -128,9 +135,17 @@ jobs:
matrix:
sdk: ["3.16.9", ""]
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 }}


- uses: actions/checkout@v4
with:
token: ${{ needs.test.outputs.token }}
token: ${{ steps.app-token.outputs.token }}
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ matrix.sdk }}
Expand All @@ -145,4 +160,4 @@ jobs:
name: fdsm-example.app
path: example/build/ios/iphonesimulator
retention-days: 3
token: ${{ needs.test.outputs.token }}
token: ${{ steps.app-token.outputs.token }}

0 comments on commit faf3d5e

Please sign in to comment.