Check Webmentions #32698
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: Check Webmentions | |
on: | |
schedule: | |
# Runs at minute 0 past every 6th hour from 0 through 23. | |
# https://crontab.guru/#0_0/6_*_*_* | |
- cron: '0 0/6 * * *' | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
webmentions: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the project | |
uses: actions/checkout@v4 | |
- name: Select Node.js version | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Install dependencies | |
run: npm ci | |
- name: Run webmention script | |
env: | |
WEBMENTION_IO_TOKEN: ${{ secrets.WEBMENTION_IO_TOKEN }} | |
run: npm run webmention >> $GITHUB_STEP_SUMMARY | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
token: ${{ secrets.PAT }} | |
branch: webmentions | |
delete-branch: true | |
commit-message: Update Webmentions | |
title: Update Webmentions | |
labels: automerge 🤞 |