File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 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'
You can’t perform that action at this time.
0 commit comments