mirror of
https://github.com/tiennm99/old-free-domains.git
synced 2026-10-11 03:13:43 +00:00
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
name: Raw API
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "domains/*"
|
|
- ".github/workflows/raw-api.yml"
|
|
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.ref }}-raw-api
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
update:
|
|
name: Update
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
repository: free-domains/raw
|
|
path: raw
|
|
token: ${{ secrets.BOT }}
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: latest
|
|
|
|
- name: Update Data
|
|
run: node raw/scripts/update.js
|
|
|
|
- name: Commit
|
|
uses: cpina/github-action-push-to-another-repository@main
|
|
with:
|
|
source-directory: "raw"
|
|
destination-github-username: free-domains
|
|
destination-repository-name: raw
|
|
user-email: 125362033+free-domains-bot@users.noreply.github.com
|
|
user-name: free-domains-bot
|
|
commit-message: "Update Data via free-domains/register"
|
|
env:
|
|
API_TOKEN_GITHUB: ${{ secrets.BOT }}
|