Fetch GeoLite2 #765
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Fetch GeoLite2 | |
on: | |
schedule: | |
- cron: "21 19 * * *" | |
push: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
fetch: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Fetch GeoLite2 Files | |
run: ./geolite2.sh | |
env: | |
MAXMIND_LICENSE_KEY: ${{ secrets.MAXMIND_LICENSE_KEY }} | |
- name: Get Timestamp | |
run: echo "TIMESTAMP=$(date +%s)" >> $GITHUB_ENV | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: dist/* | |
tag_name: ${{ env.TIMESTAMP }} |