Skip to content

Update domains.json #11

Update domains.json

Update domains.json #11

name: Update domains.json
on:
workflow_dispatch:
schedule:
- cron: "0 0 1 * *"
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Download new file
uses: wei/curl@v1
with:
args: https://cdn.jsdelivr.net/gh/andreis/disposable-email-domains@master/domains.json --output domains.json
- name: Determine next patch version
id: versioning
run: |
echo "next_patch=$(git describe --tags --abbrev=0 | awk -F. '{OFS="."; $NF+=1; print $0}')" >> $GITHUB_OUTPUT
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: master
file_pattern: domains.json
commit_message: "[AUTO] Update domains.json"
tagging_message: ${{ steps.versioning.outputs.next_patch }}