Skip to content

Commit

Permalink
feat(suite-native): propagate commit SHA to EAS updates
Browse files Browse the repository at this point in the history
  • Loading branch information
matejkriz committed Oct 24, 2024
1 parent 80d4ecc commit 788c299
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build-suite-native-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
EXPO_PUBLIC_ENVIRONMENT: preview
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
COMMIT_HASH: ${{ github.sha }}
permissions:
contents: read
pull-requests: write
Expand All @@ -47,10 +48,8 @@ jobs:
command: eas build --profile preview --platform all
working-directory: suite-native/app

- name: Install deps and build libs
run: |
yarn install --immutable
yarn message-system-sign-config
- name: Build message system config
run: yarn message-system-sign-config

- name: Create preview update
uses: expo/expo-github-action/preview@v8
Expand Down
2 changes: 1 addition & 1 deletion suite-native/app/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export default ({ config }: ConfigContext): ExpoConfig => {
},
plugins: getPlugins(),
extra: {
commitHash: process.env.EAS_BUILD_GIT_COMMIT_HASH || '',
commitHash: process.env.EAS_BUILD_GIT_COMMIT_HASH || process.env.COMMIT_HASH || '',
eas: {
projectId,
},
Expand Down

0 comments on commit 788c299

Please sign in to comment.