Export lists by GitHub Actions & push to release branch

This commit is contained in:
loyalsoldier 2020-07-28 00:56:30 +08:00
parent 670629a255
commit 8d76a667dc
No known key found for this signature in database
GPG Key ID: 23829BBC1ACF2C90

View File

@ -32,7 +32,7 @@ jobs:
- name: Build dlc.dat file
run: |
domain-list-community --datapath=${{ env.GOPATH }}/src/${{ env.REPO_URL }}/data
domain-list-community --datapath=${{ env.GOPATH }}/src/${{ env.REPO_URL }}/data --exportlists=cn,category-ads-all,geolocation-\!cn
- name: Generate dlc.dat sha256 hash
run: |
@ -44,7 +44,7 @@ jobs:
git config --local user.name "actions"
git config --local user.email "action@github.com"
git checkout -b release
git add dlc.dat dlc.dat.sha256sum
git add dlc.dat dlc.dat.sha256sum *.txt
git commit -m "${{ env.RELEASE_NAME }}"
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
git push -f -u origin release