|
|
@ -4,6 +4,7 @@ on: |
|
|
|
push: |
|
|
|
push: |
|
|
|
branches: |
|
|
|
branches: |
|
|
|
- master |
|
|
|
- master |
|
|
|
|
|
|
|
pull_request: |
|
|
|
workflow_dispatch: |
|
|
|
workflow_dispatch: |
|
|
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
jobs: |
|
|
@ -127,11 +128,12 @@ jobs: |
|
|
|
run: mv */*.apk . ;rm -rf */ |
|
|
|
run: mv */*.apk . ;rm -rf */ |
|
|
|
- name: Push To "test" Branch |
|
|
|
- name: Push To "test" Branch |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
|
|
|
|
cd $GITHUB_WORKSPACE/apk/ |
|
|
|
|
|
|
|
git init |
|
|
|
|
|
|
|
git checkout -b test |
|
|
|
git config --global user.name "github-actions[bot]" |
|
|
|
git config --global user.name "github-actions[bot]" |
|
|
|
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" |
|
|
|
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" |
|
|
|
git clone "https://${{ github.actor }}:${{ secrets.ACTIONS_TOKEN }}@github.com/${{ github.actor }}/release" -b test test-branch |
|
|
|
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.actor }}/release" |
|
|
|
mv -f $GITHUB_WORKSPACE/apk/*.apk test-branch |
|
|
|
|
|
|
|
cd test-branch |
|
|
|
|
|
|
|
git add *.apk |
|
|
|
git add *.apk |
|
|
|
git commit -m "${{ needs.prepare.outputs.versionL }}" |
|
|
|
git commit -m "${{ needs.prepare.outputs.versionL }}" |
|
|
|
git push -f -u origin test |
|
|
|
git push -f -u origin test |
|
|
|