Skip to content

Commit 9be43db

Browse files
committed
ci(weekly): Added a indexnow pipeline, which all posts from the last two weeks
1 parent a33d1b9 commit 9be43db

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 'IndexNow Weekly'
2+
on:
3+
schedule:
4+
- cron: '0 3 * * 1' # Runs weekly on Mondays morning at 03:00 UTC
5+
workflow_dispatch:
6+
inputs:
7+
since-unit:
8+
type: choice
9+
description: 'The unit of time to report updates since'
10+
required: true
11+
default: year
12+
options:
13+
- week
14+
- month
15+
- year
16+
17+
jobs:
18+
check-and-submit:
19+
runs-on: ubuntu-latest
20+
steps:
21+
22+
- id: indexnow
23+
name: Report Updates to IndexNow
24+
uses: bojieyang/indexnow-action@v2
25+
with:
26+
sitemap-location: 'https://daily-devops.net/sitemap.xml'
27+
key: ${{ secrets.INDEXNOW_KEY }}
28+
key-location: 'https://daily-devops.net/indexnow.txt'
29+
since: 2
30+
since-unit: ${{ inputs.since-unit || 'week' }}
31+
failure-strategy: 'error'

0 commit comments

Comments
 (0)