Skip to content

Commit 49fa4d0

Browse files
authored
Create scrape-proton-mta-sts.yml
1 parent a020123 commit 49fa4d0

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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 }}

0 commit comments

Comments
 (0)