mirror of
https://github.com/tiennm99/old-free-domains.git
synced 2026-10-14 08:18:34 +00:00
use checkout on raw api (#103)
* Update raw-api.yml * fix typo * feat: use checkout, not creating dir * feat: update path * feat: no need for cd
This commit is contained in:
1 parent
b454eaf81b
commit
bcfb4ffb6a
2 files changed
+8
-10
No files matched your search
@@ -16,27 +16,25 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
repository: free-domains/raw-api
|
||||
path: main
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16
|
||||
|
||||
- name: Create raw-api Directory
|
||||
run: |
|
||||
mkdir raw-api
|
||||
echo "raw.freesubdomains.org" > ./raw-api/CNAME
|
||||
echo "" > ./raw-api/index.json
|
||||
|
||||
- name: Execute Script
|
||||
run: node scripts/raw-api.js
|
||||
|
||||
- name: Commit
|
||||
uses: cpina/github-action-push-to-another-repository@main
|
||||
with:
|
||||
source-directory: "raw-api"
|
||||
source-directory: "main"
|
||||
destination-github-username: free-domains
|
||||
destination-repository-name: raw-api
|
||||
user-email: bot@freesubdomains.org
|
||||
|
||||
Reference in new issue
Block a user