File tree 1 file changed +28
-0
lines changed
1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Daily MTA-STS Scraper
2
+
3
+ on :
4
+ schedule :
5
+ - cron : ' 0 0 * * *' # Runs every day at midnight UTC
6
+ workflow_dispatch : # Allows manual triggering of the workflow
7
+
8
+ jobs :
9
+ scrape :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - name : Checkout repository
14
+ uses : actions/checkout@v4
15
+
16
+ - name : Fetch MTA-STS Policy
17
+ run : |
18
+ curl -s https://mta-sts.protonmail.com/.well-known/mta-sts.txt > .well-known/mta-sts.txt
19
+
20
+ - name : Commit and push updated file
21
+ run : |
22
+ git config --global user.name "github-actions[bot]"
23
+ git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
24
+ git add .well-known/mta-sts.txt
25
+ git commit -m "Update MTA-STS policy on $(date +'%Y-%m-%d')"
26
+ git push
27
+ env :
28
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments