Check Webmentions #46345
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 every 15th minute from 0 through 59 | |
# https://crontab.guru/#0/15_*_*_*_* | |
- cron: '0/15 * * * *' | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
webmentions: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the project | |
uses: actions/checkout@v2 | |
- name: Select Node.js version | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16' | |
- 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 🤞 |