mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-26 21:30:55 +08:00
21 lines
617 B
YAML
21 lines
617 B
YAML
name: LCTT Article Checker
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [master]
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
PULL_REQUEST_ID: ${{ github.event.number }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: ensure source branch is not "master"
|
|
run: '[ "${{ github.head_ref }}" != master ]'
|
|
- 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
|
|
- name: run check
|
|
run: sh ./scripts/check.sh;
|