-
-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (30 loc) · 1.03 KB
/
sitemap_submission.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
name: Push Sitemap to Bing Indexnow and Google Indexing Api
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *" # Schedule to run at 00:00 (midnight) UTC every day
jobs:
search_urls_push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Push Bing 1
uses: 3Alan/[email protected]
with:
site: ${{ secrets.SITE }}
sitemap: ${{ secrets.SITEMAP }}
count: 10
bing-token: ${{ secrets.BING_TOKEN }}
- name: Run Search Engines URLs Push action (Google)
uses: 3Alan/[email protected]
with:
site: ${{ secrets.SITE }}
sitemap: ${{ secrets.SITEMAP }}
count: 150
google-client-email: ${{ secrets.GOOGLE_CLIENT_EMAIL }}
google-private-key: ${{ secrets.GOOGLE_PRIVATE_KEY }}
# Mask the sensitive number in the logs
- name: Mask Sensitive Data
run: |
echo "::add-mask::${{ secrets.PROJECT_NUMBER }}"