-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (46 loc) · 2.75 KB
/
touch-readme.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Update README and Sitemap
on:
schedule:
- cron: '0 0 * * *' # Daily at midnight UTC
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Update README
run: touch README.md
- name: Update sitemap
run: |
echo "<?xml version='1.0' encoding='UTF-8'?>" > sitemap.xml
echo "<urlset xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'>" >> sitemap.xml
echo " <url>" >> sitemap.xml
echo " <loc>https://github.com/Unlimited-Research-Cooperative/Bio-Silicon-Synergetic-Intelligence-System</loc>" >> sitemap.xml
echo " <lastmod>$(date --utc +%Y-%m-%dT%H:%M:%S+00:00)</lastmod>" >> sitemap.xml
echo " <changefreq>daily</changefreq>" >> sitemap.xml
echo " <priority>1.0</priority>" >> sitemap.xml
echo " </url>" >> sitemap.xml
echo "</urlset>" >> sitemap.xml
shell: bash
- name: Commit and push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add README.md sitemap.xml
git commit -m "Update README and sitemap"
git push
- name: Ping search engines
run: |
curl -s "http://www.google.com/ping?sitemap=https://github.com/Unlimited-Research-Cooperative/Bio-Silicon-Synergetic-Intelligence-System/sitemap.xml"
curl -s "http://www.bing.com/ping?sitemap=https://github.com/Unlimited-Research-Cooperative/Bio-Silicon-Synergetic-Intelligence-System/sitemap.xml"
curl -s "http://www.duckduckgo.com/ping?sitemap=https://github.com/Unlimited-Research-Cooperative/Bio-Silicon-Synergetic-Intelligence-System/sitemap.xml"
curl -s "http://www.yandex.com/ping?sitemap=https://github.com/Unlimited-Research-Cooperative/Bio-Silicon-Synergetic-Intelligence-System/sitemap.xml"
curl -s "http://www.baidu.com/ping?sitemap=https://github.com/Unlimited-Research-Cooperative/Bio-Silicon-Synergetic-Intelligence-System/sitemap.xml"
curl -s "http://www.sogou.com/ping?sitemap=https://github.com/Unlimited-Research-Cooperative/Bio-Silicon-Synergetic-Intelligence-System/sitemap.xml"
curl -s "http://www.so.com/ping?sitemap=https://github.com/Unlimited-Research-Cooperative/Bio-Silicon-Synergetic-Intelligence-System/sitemap.xml"
curl -s "https://search.mail.ru/ping?sitemap=https://github.com/Unlimited-Research-Cooperative/Bio-Silicon-Synergetic-Intelligence-System/sitemap.xml"
shell: bash
- name: Ping academic search engines
run: |
curl -s "http://www.scholar.google.com/ping?sitemap=https://github.com/Unlimited-Research-Cooperative/Bio-Silicon-Synergetic-Intelligence-System/sitemap.xml"
shell: bash