Skip to content

Commit

Permalink
Workflow updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Burzo committed Apr 1, 2024
1 parent 8c2bcc2 commit 9618c7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
name: iOS development build
runs-on: macos-latest
steps:
- name: Add release notes
run: |
echo -n "${{ needs.extract-version.outputs.release_notes }}" > ./release_notes.txt
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.12.0
- name: Checkout repo from dev branch
Expand Down Expand Up @@ -67,7 +70,6 @@ jobs:
APP_VERSION: ${{ needs.extract-version.outputs.version }}
APP_ID: ${{ vars.APP_ID_IOS }}
TESTERS: ${{ vars.TESTERS }}
RELEASE_NOTES: ${{ needs.extract-version.outputs.release_notes }}
android-build:
needs: extract-version
environment: development
Expand All @@ -76,6 +78,9 @@ jobs:
container:
image: reactnativecommunity/react-native-android
steps:
- name: Add release notes
run: |
echo -n "${{ needs.extract-version.outputs.release_notes }}" > ./release_notes.txt
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.12.0
- name: Checkout repo from dev branch
Expand Down Expand Up @@ -114,4 +119,3 @@ jobs:
APP_CODE_VERSION: ${{ github.run_number }}
APP_ID: ${{ vars.APP_ID_ANDROID }}
TESTERS: ${{ vars.TESTERS }}
RELEASE_NOTES: ${{ needs.extract-version.outputs.release_notes }}
4 changes: 2 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ platform :ios do
app: ENV["APP_ID"],
service_credentials_file: "./fastlane/wildlife-watcher-service-account.json",
testers: ENV['TESTERS'],
release_notes: ENV['RELEASE_NOTES'] || "No release notes provided."
release_notes_file: './release-notes.txt'
)

build_ios_app(
Expand Down Expand Up @@ -104,7 +104,7 @@ platform :android do
android_artifact_path: "./android/app/build/outputs/apk/release/app-release.apk",
service_credentials_file: "./fastlane/wildlife-watcher-service-account.json",
testers: ENV['TESTERS'],
release_notes: ENV['RELEASE_NOTES'] || "No release notes provided."
release_notes_file: './release-notes.txt'
)

# Will add once the app is uploaded
Expand Down

0 comments on commit 9618c7e

Please sign in to comment.