mirror of
https://github.com/ai-robots-txt/ai.robots.txt.git
synced 2025-04-19 00:26:01 +00:00
Adding GitHub Action
This commit is contained in:
parent
17a84f2c2d
commit
1fdc79dacb
3 changed files with 244 additions and 0 deletions
25
.github/workflows/main.yml
vendored
Normal file
25
.github/workflows/main.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
on: [push]
|
||||
|
||||
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 rm robots.txt
|
||||
git rm table-of-bot-metrics.md
|
||||
git add -A
|
||||
git commit -m "Removing previously generated files"
|
||||
git push
|
||||
php -f code/action.php
|
||||
git config --global user.name "ai.robots.txt"
|
||||
git config --global user.email "ai.robots.txt@users.noreply.github.com"
|
||||
git add -A
|
||||
git commit -m "${{ github.event.head_commit.message }}"
|
||||
git push
|
||||
shell: bash
|
Loading…
Add table
Add a link
Reference in a new issue