Skip to content

Commit

Permalink
fix: Env has to be set a step before the referencing it.
Browse files Browse the repository at this point in the history
  • Loading branch information
shichen85 committed Oct 6, 2024
1 parent b6cb24d commit b2d1b5c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ jobs:
with:
ffmpeg-version: "6.1.0"
if: runner.os == 'Linux'

- name: Create the settings file
- name: Use JAVA_HOME_17_X64 for jdk_location
if: runner.os == 'Linux'
run: |
# Store $JAVA_HOME_17_X64 as a GitHub env variable
echo "JAVA_HOME_17_X64=$JAVA_HOME_17_X64" >> $GITHUB_ENV
- name: Create the settings file
if: runner.os == 'Linux'
run: |
echo '{"machine.Platform Settings.Android.Keystore.filename": "${{ github.workspace }}/ascx.keystore", "machine.Platform Settings.Android.Keystore.keystore_password": "${{ secrets.KEYSTORE_PASSWORD }}", "machine.Platform Settings.Android.Keystore.keystore_alias_password": "${{ secrets.KEYSTORE_PASSWORD }}", "machine.Platform Settings.Android.Keystore.alias": "${{ secrets.KEYSTORE_USERNAME }}" , "machine.Platform Settings.Android.Paths.jdk_location": "${{ env.JAVA_HOME_17_X64 }}" }' > local_settings.json
- name: Set Up Android tools (Linux only)
if: runner.os == 'Linux'
Expand Down

0 comments on commit b2d1b5c

Please sign in to comment.