Update MTA-STS #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Daily MTA-STS Scraper | |
on: | |
schedule: | |
- cron: '0 0 * * *' # Runs every day at midnight UTC | |
workflow_dispatch: # Allows manual triggering of the workflow | |
jobs: | |
scrape: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Fetch MTA-STS Policy | |
run: | | |
curl -s https://mta-sts.protonmail.com/.well-known/mta-sts.txt > .well-known/mta-sts.txt | |
- name: Commit and push updated file | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "[email protected]." | |
git add .well-known/mta-sts.txt | |
git commit -m "Update MTA-STS policy on $(date +'%Y-%m-%d')" | |
git push | |
env: | |
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} |