Piotr Prus
08/29/2023, 12:05 PMkmmbridge
in the existing big project to publish shared for iOS. I have an issue with github actions configuration as my project is setting up some local.properties. I am trying to add these steps in publish workflow, but github actions for some reason do not allow to use predefined action (touchlab/KMMBridgeGithubWorkflow/.github/workflows/faktorybuildbranches.yml@v0.9) as one of the steps. How can I do that? Workflow file in thread đź§µPiotr Prus
08/29/2023, 12:05 PMname: KMM Bridge Publish Release
on:
workflow_dispatch:
jobs:
call-kmmbridge-publish:
runs-on: macos-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: Access TILT_BASE_URL_DEV
env:
TILT_BASE_URL_DEV: ${{ secrets.TILT_BASE_URL_DEV }}
run: echo TILT_BASE_URL_DEV=$TILT_BASE_URL_DEV >> ./local.properties
permissions:
contents: write
packages: write
- name: Build and publish KMP
uses: touchlab/KMMBridgeGithubWorkflow/.github/workflows/faktorybuildbranches.yml@v0.9
with:
jvmVersion: 17
russhwolf
08/29/2023, 5:37 PMPiotr Prus
08/30/2023, 11:08 AMcheckout
action that cleans the properties? Or other action maybe is cleaning the local.properties
.krzysztof
08/30/2023, 3:07 PMTILT_BASE_URL_DEV: ${{ secrets.TILT_BASE_URL_DEV }}
run: echo TILT_BASE_URL_DEV=$TILT_BASE_URL_DEV >>
your secrets are obfuscated, so you basically append “*” to gradle.propertieskrzysztof
08/30/2023, 3:07 PMTILT_BASE_URL_DEV
is not a real secret, you can move it to Project Variables, which is not obfuscated by GH actionskrzysztof
08/30/2023, 3:09 PMvars
context
https://docs.github.com/en/actions/learn-github-actions/variables#using-contexts-to-access-variable-valuesPiotr Prus
08/30/2023, 5:14 PMlocal.properties
are apiKeys and this GH actions works for the project. Now, when I moved the checkout up and use specific actions instead of the predefined workflow, everythink works