ybbond

My site. The main domain
Log | Files | Refs | README | LICENSE | CC-LICENSE

webmentions.yml (1025B)


      1 name: Webmentions
      2 
      3 on:
      4   schedule:
      5     - cron: "0 */6 * * *"
      6 
      7 jobs:
      8   webmentions:
      9     runs-on: ubuntu-latest
     10     steps:
     11       - name: Check out repository
     12         uses: actions/checkout@master
     13 
     14       - name: Set up Node.js
     15         uses: actions/setup-node@master
     16         with:
     17           node-version: 12.x
     18 
     19       - name: Fetch webmentions
     20         env:
     21           WEBMENTIONS_TOKEN: ${{ secrets.WEBMENTIONS_TOKEN }}
     22         run: node ./webmentions.js
     23 
     24       - name: Commit to repository
     25         env:
     26           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
     27           COMMIT_MSG: |
     28             Fetch webmentions
     29             skip-checks: true
     30         run: |
     31           git config user.email "hi@ybbond.id"
     32           git config user.name "Yohanes Bandung Bondowoso"
     33           git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/ybbond/ybbond.git
     34           git checkout master
     35           git add .
     36           git diff --quiet && git diff --staged --quiet || (git commit -m "${COMMIT_MSG}"; git push origin master)