mirror of
https://github.com/ai-robots-txt/ai.robots.txt.git
synced 2025-04-19 00:26:01 +00:00
restore correct attribution logic to before PR #55
This commit is contained in:
parent
bd38c30194
commit
b64284d684
2 changed files with 44 additions and 10 deletions
38
.github/workflows/main.yml
vendored
Normal file
38
.github/workflows/main.yml
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
message:
|
||||
type: string
|
||||
required: true
|
||||
description: The message to commit
|
||||
push:
|
||||
paths:
|
||||
- 'robots.json'
|
||||
branches:
|
||||
- "main"
|
||||
|
||||
jobs:
|
||||
ai-robots-txt:
|
||||
runs-on: ubuntu-latest
|
||||
name: ai-robots-txt
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 2
|
||||
- run: |
|
||||
git config --global user.name "ai.robots.txt"
|
||||
git config --global user.email "ai.robots.txt@users.noreply.github.com"
|
||||
git log -1
|
||||
git status
|
||||
echo "Updating robots.txt and table-of-bot-metrics.md if necessary ..."
|
||||
python code/dark_visitors.py --convert
|
||||
echo "... done."
|
||||
git --no-pager diff
|
||||
git add -A
|
||||
if [ -n "${{ inputs.message }}" ]; then
|
||||
git commit -m "${{ inputs.message }}"
|
||||
else
|
||||
git commit -m "${{ github.event.head_commit.message }}"
|
||||
fi
|
||||
git push
|
||||
shell: bash
|
Loading…
Add table
Add a link
Reference in a new issue