فهرست منبع

Merge pull request #1505 from celetor/master

修复actions
kunfei 4 سال پیش
والد
کامیت
bef0e70760
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 2 2
      .github/workflows/release.yml
  2. 1 1
      .github/workflows/test.yml

+ 2 - 2
.github/workflows/release.yml

@@ -85,8 +85,8 @@ jobs:
           git init
           git init
           git config --local user.name "github-actions[bot]"
           git config --local user.name "github-actions[bot]"
           git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
           git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
-          git clone "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.actor }}/release" -b release release-branch
-          mv -rf $GITHUB_WORKSPACE/apk/*.apk release-branch
+          git clone "https://${{ github.actor }}:${{ secrets.ACTIONS_TOKEN }}@github.com/${{ github.actor }}/release" -b release release-branch
+          mv -f $GITHUB_WORKSPACE/apk/*.apk release-branch
           cd release-branch
           cd release-branch
           git add *.apk
           git add *.apk
           git commit -m "${{ env.RELEASE_VERSION }}"
           git commit -m "${{ env.RELEASE_VERSION }}"

+ 1 - 1
.github/workflows/test.yml

@@ -131,7 +131,7 @@ jobs:
           git config --local user.name "github-actions[bot]"
           git config --local user.name "github-actions[bot]"
           git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
           git config --local 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 clone "https://${{ github.actor }}:${{ secrets.ACTIONS_TOKEN }}@github.com/${{ github.actor }}/release" -b test test-branch
-          mv -rf $GITHUB_WORKSPACE/apk/*.apk test-branch
+          mv -f $GITHUB_WORKSPACE/apk/*.apk test-branch
           cd 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 }}"