Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get file by pattern #18

Closed
Axrorxoja opened this issue Jul 9, 2020 · 2 comments
Closed

Get file by pattern #18

Axrorxoja opened this issue Jul 9, 2020 · 2 comments

Comments

@Axrorxoja
Copy link

Hi there
Thank you for such amazing plugin
I want ask that can in my project build file name changed in every build
can I show file like so ?
file: app/build/outputs/release/*.apk

@wzieba
Copy link
Owner

wzieba commented Jul 9, 2020

hi @Axrorxoja, great to hear that this action is helpful for you! It's good idea to make this default behaviour to make plugin look for .apk name, I'm adding this to backlog.

There's a way though to achieve this by yourself, look at this snippet

 foo_bar_job:
    name: Build, test and upload to firebase
    runs-on: ubuntu-latest
    steps:
      # any steps before here
      - name: Get apk name
        id: apk-name
        run: |
          APK_NAME=$(echo app/build/outputs/release/*.apk)
          echo "::set-output name=APK_NAME::${APK_NAME}"
      - name: upload artifact to Firebase Distribution
        uses: wzieba/Firebase-Distribution-Github-Action@v1
        with:
          appId: <app id>
          token: <token>
          groups: <groups>
          file: ${{ steps.apk-name.outputs.APK_NAME }}

I hope this will help.

@Axrorxoja
Copy link
Author

thank you so much @wzieba
you save my time

@wzieba wzieba pinned this issue Apr 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants