update raw api

This commit is contained in:
William Harrison authored and GitHub committed 2023-02-14 19:18:27 +08:00
1 parent 475569187c
commit dfd892c220
5 files changed
+5 -5

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
name: Raw API
on:
push:
branches: [main]
jobs:
update:
name: Update
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 16
- name: Run Script
run: |
node scripts/raw-api.js
- name: Push Data
uses: cpina/github-action-push-to-another-repository@main
with:
source-directory: "raw-api"
destination-github-username: free-domains
destination-repository-name: raw-api
user-email: actions@github.com
user-name: github-actions
commit-message: "Update Data via free-domains/register"
env:
API_TOKEN_GITHUB: ${{ secrets.PAT_TOKEN }}