File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 1111 # github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
1212 # docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#inputs
1313 inputs :
14+ repo :
15+ description : ' repo'
16+ default : ' maven'
17+ required : true
18+ type : choice
19+ options :
20+ - maven
21+ - jitpack
1422 commit :
15- description : ' commit sha '
23+ description : ' firestack version '
1624 default : ' '
1725 required : true
1826
@@ -54,14 +62,20 @@ jobs:
5462 run : |
5563 # wget opts: superuser.com/a/689340
5664 wgetopts="--tries=3 --retry-on-http-error=404 --waitretry=3 --no-dns-cache"
57- wget $wgetopts "https://jitpack.io/com/github/celzero/firestack/${COMMIT:0:10}/firestack-${COMMIT:0:10}-debug.aar" -O "firestack.aar"
65+ if [ "$REPO" = 'jitpack' ]; then
66+ wget $wgetopts "https://jitpack.io/com/github/celzero/firestack/${COMMIT:0:10}/firestack-${COMMIT:0:10}-debug.aar" -O "firestack.aar"
67+ else
68+ # ex: https://repo1.maven.org/maven2/com/celzero/firestack/30c7f27122/
69+ wget $wgetopts "https://repo1.maven.org/maven2/com/celzero/firestack/${COMMIT:0:10}/firestack-${COMMIT:0:10}-debug.aar" -O "firestack.aar"
70+ fi
5871 ls -ltr .
5972 unzip ./firestack.aar
6073 firebase crashlytics:symbols:upload --app=${{ secrets.FIREBASE_APP_ID_ANDROID }} --debug jni/
6174 shell : bash
6275 env :
6376 COMMIT : ${{ env.COMMIT }}
6477 FIREBASE_TOKEN : ${{ secrets.FIREBASE_TOKEN }}
78+ REPO : ${{ github.event.inputs.repo || 'maven' }}
6579
6680
6781
You can’t perform that action at this time.
0 commit comments