awesome-ipfs/.github/workflows/data.yml
Russell Dempsey 8078b823b4
fix: prevent forks from auto updating readme
ensure that the Rebuild commit only applies to the ipfs/awesome-ipfs repo
2022-09-28 14:25:48 -07:00

36 lines
884 B
YAML

name: auto build data
on:
push:
branches:
- master
paths:
- data/**
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]') && ${{ github.repository == 'ipfs/awesome-ipfs' }}"
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/setup-node@v1.4.4
with:
node-version: 13
- name: build
run: |
npm --version
node --version
npm ci
npm run lint
npm run build
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m "Rebuild" -a
- name: Push changes
if: success()
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}