Skip to content

Commit 29a70a6

Browse files
authored
Delete asset as the action can't overwrite.
actions/upload-release-asset#13
1 parent 18057d3 commit 29a70a6

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/geoip.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,20 @@ jobs:
1111
runs-on: ubuntu-20.04
1212

1313
steps:
14-
- name: Clone Repository
14+
- name: Clone repository
1515
uses: actions/checkout@v2
1616

1717
- name: Fetch GeoIP from ip2location.
1818
run: ./fetch-geoip.sh
1919

20-
- name: Upload Release Asset
20+
- name: Delete old release assets
21+
uses: mknejp/delete-release-assets@v1
22+
with:
23+
token: ${{ secrets.GEOIP_TOKEN }}
24+
tag: monthly
25+
assets: 'IP2LOCATION-LITE-DB1.IPV6.BIN.1.ZIP'
26+
27+
- name: Upload release asset
2128
id: upload-release-asset
2229
uses: actions/upload-release-asset@v1
2330
env:

0 commit comments

Comments
 (0)