Update test.yml

pull/142/head
jun yu 1 year ago committed by GitHub
parent 9ae3b23882
commit 8b73b9d9ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 15
      .github/workflows/test.yml

@ -157,21 +157,6 @@ jobs:
artifacts: |
TVBoxOSC/apk/*.apk
TVBoxOSC/apk/sourceCode-${{ env.commitS }}.*
- name: Push to master
if: ${{ env.commit }}
run: |
rm -rf TVBoxOSC
git reset --hard
sed -i '/url =/d' ./.git/config
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git remote set-url --add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
git pull --rebase
sed -i "/${{ matrix.userName }}\/${{ matrix.repoName }}/s#Updated: [a-zA-Z0-9]*#Updated: ${{ env.commit }}#" README.md
git add --all
git commit -m "${{ env.commit }}"
git push -u -f origin master
clean:
needs: build
runs-on: ubuntu-latest

Loading…
Cancel
Save