Webmentions #4814
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: Webmentions | |
on: | |
schedule: | |
- cron: "0 */2 * * *" | |
workflow_dispatch: | |
jobs: | |
webmentions: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: Install package | |
run: npm install | |
- name: Fetch webmentions | |
run: node ./src/webmentions.js | |
- name: Commit to repository | |
run: | | |
git config user.name heyjaywilson | |
git config user.email contact@cctplus.dev | |
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/heyjaywilson/heyjaywilsoncom.git | |
git checkout main | |
git add . | |
git diff --quiet && git diff --staged --quiet || git commit -m "[generated]: Update webmentions" | |
git push origin main |