diff --git a/.github/workflows/build_apk.yml b/.github/workflows/build_apk.yml index cc5a9fab..e3b42cc9 100644 --- a/.github/workflows/build_apk.yml +++ b/.github/workflows/build_apk.yml @@ -25,10 +25,6 @@ on: tar-url: required: false type: string - ref: - description: 'A ref for this workflow to check out its own repo' - required: false - type: string signed: description: 'Should this be signed with the development key? (mutually exclusive with release)' required: false @@ -90,12 +86,9 @@ jobs: echo "Must specify only one reference for the tar file to build the APK with." exit 1 - uses: actions/checkout@v4 - if: ${{ !inputs.ref }} - - uses: actions/checkout@v4 - if: ${{ inputs.ref }} with: - repository: learningequality/kolibri-installer-android - ref: ${{ inputs.ref }} + repository: ${{ github.action_repository }} + ref: ${{ github.action_ref }} - name: Get SHA of current commit id: get-commit # Note that we do this, so that we get the same commit regardless diff --git a/.github/workflows/release_apk.yml b/.github/workflows/release_apk.yml index a25646ab..3a0b593b 100644 --- a/.github/workflows/release_apk.yml +++ b/.github/workflows/release_apk.yml @@ -14,10 +14,6 @@ on: description: 'The version code to promote to the open testing track' required: true type: string - ref: - description: 'A ref for this workflow to check out its own repo' - required: true - type: string secrets: KOLIBRI_ANDROID_PLAY_STORE_API_SERVICE_ACCOUNT_JSON: required: false @@ -29,12 +25,9 @@ jobs: SERVICE_ACCOUNT_JSON: '${{ secrets.KOLIBRI_ANDROID_PLAY_STORE_API_SERVICE_ACCOUNT_JSON }}' steps: - uses: actions/checkout@v4 - if: ${{ !inputs.ref }} - - uses: actions/checkout@v4 - if: ${{ inputs.ref }} with: - repository: learningequality/kolibri-android-installer - ref: ${{ inputs.ref }} + repository: ${{ github.action_repository }} + ref: ${{ github.action_ref }} - name: Set up Python 3.9 uses: actions/setup-python@v5 with: