Skip to content

Download and Commit File #294

Download and Commit File

Download and Commit File #294

Workflow file for this run

name: Download and Commit File
on:
schedule:
- cron: '0 0 * * *' # This will run the action daily at midnight
workflow_dispatch: # This allows manual triggering
jobs:
download-and-commit:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Download File
run: |
sudo apt install wget2 -y
wget2 -O server/db.mmdb https://mmdbcdn.posthog.net
- name: Commit and Push
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update db.mmdb