Skip to content

Commit

Permalink
add build number injection in ios and android pipeline (#2139)
Browse files Browse the repository at this point in the history
  • Loading branch information
yzlucas authored Nov 7, 2024
1 parent 6bae23d commit f896db6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ jobs:
NPMRC: ${{ secrets.NPMRC }}
run: echo -e "$NPMRC" > .npmrc

- name: Inject GitHub Build Number and Display Directory
run: |
echo "Current working directory:"
pwd
echo "export const BUILD_NUMBER = '${{ github.run_number }}';" > client/wfnews-war/src/main/angular/src/environments/build-info.ts
echo "Contents: "
ls -lah
- name: Add Google Services file
working-directory: "${{ env.ANGULAR_DIRECTORY }}/android/app"
env:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ jobs:
NPMRC: ${{ secrets.NPMRC }}
run: echo -e -n "$NPMRC" > .npmrc

- name: Inject GitHub Build Number and Display Directory
run: |
echo "Current working directory:"
pwd
echo "export const BUILD_NUMBER = '${{ github.run_number }}';" > client/wfnews-war/src/main/angular/src/environments/build-info.ts
echo "Contents: "
ls -lah
- name: Get XML Info
id: version
uses: mavrosxristoforos/[email protected]
Expand Down

0 comments on commit f896db6

Please sign in to comment.