chore: format robots.txt.yml with prettier (#21)
This commit is contained in:
parent
16a33cb38f
commit
9843063ad4
49
.github/workflows/robots.txt.yml
vendored
49
.github/workflows/robots.txt.yml
vendored
|
@ -1,34 +1,33 @@
|
||||||
name: "Update robots.txt"
|
name: "Update robots.txt"
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * 6" # At 00:00 on Saturday
|
- cron: "0 0 * * 6" # At 00:00 on Saturday
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update:
|
update:
|
||||||
name: "Update robots.txt"
|
name: "Update robots.txt"
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Pull latest robots
|
- name: Pull latest robots
|
||||||
run: |
|
run: |
|
||||||
curl -X POST https://api.darkvisitors.com/robots-txts \
|
curl -X POST https://api.darkvisitors.com/robots-txts \
|
||||||
-H "Authorization: Bearer ${{ secrets.DarkVisitorsBearer }}" \
|
-H "Authorization: Bearer ${{ secrets.DarkVisitorsBearer }}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
--data-raw '{"agent_types": ["AI Assistant", "AI Data Scraper", "AI Search Crawler", "Undocumented AI Agent"]}' \
|
--data-raw '{"agent_types": ["AI Assistant", "AI Data Scraper", "AI Search Crawler", "Undocumented AI Agent"]}' \
|
||||||
--output ./public/robots.txt
|
--output ./public/robots.txt
|
||||||
|
|
||||||
- name: Commit changes
|
|
||||||
uses: EndBug/add-and-commit@v9
|
|
||||||
with:
|
|
||||||
message: "chore: generate robots.txt"
|
|
||||||
default_author: github_actions
|
|
||||||
push: true
|
|
||||||
|
|
||||||
|
- name: Commit changes
|
||||||
|
uses: EndBug/add-and-commit@v9
|
||||||
|
with:
|
||||||
|
message: "chore: generate robots.txt"
|
||||||
|
default_author: github_actions
|
||||||
|
push: true
|
||||||
|
|
Loading…
Reference in a new issue