Skip to content

Commit

Permalink
Merge pull request #29 from Loyalsoldier/fix-filename
Browse files Browse the repository at this point in the history
Fix: filename error
  • Loading branch information
Richard Chen authored Oct 22, 2020
2 parents cf664e0 + d8bad4b commit e0a1660
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Sync geoip.dat with v2fly
on:
schedule:
- cron: "0 1 * * 4"
push:
branches:
- master
paths-ignore:
- "**/README.md"
jobs:
sync:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -44,24 +49,24 @@ jobs:
draft: false
prerelease: false

- name: Upload dlc.dat
- name: Upload geoip.dat
if: ${{ env.NeedToSync }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dlc.dat
asset_name: dlc.dat
asset_path: ./geoip.dat
asset_name: geoip.dat
asset_content_type: application/octet-stream

- name: Upload dlc.dat.sha256sum
- name: Upload geoip.dat.sha256sum
if: ${{ env.NeedToSync }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dlc.dat.sha256sum
asset_name: dlc.dat.sha256sum
asset_path: ./geoip.dat.sha256sum
asset_name: geoip.dat.sha256sum
asset_content_type: text/plain

0 comments on commit e0a1660

Please sign in to comment.