TranslateProject/.github/workflows/lctt-article-checker.yml

19 lines
512 B
YAML
Raw Normal View History

2021-01-15 11:35:04 +08:00
name: LCTT Article Checker
on:
2021-01-15 18:49:21 +08:00
pull_request:
2021-01-15 11:35:04 +08:00
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
env:
2021-01-16 15:56:38 +08:00
PULL_REQUEST_ID: ${{ github.event.number }}
2021-01-15 11:35:04 +08:00
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
2021-01-15 18:49:21 +08:00
- name: "checkout master branch & return to pull request branch"
run: CURRENT=$(echo ${{github.ref}} | sed "s|refs/|refs/remotes/|") && git checkout master && git checkout $CURRENT
2021-01-15 11:35:04 +08:00
- name: run check
run: sh ./scripts/check.sh;