This repository has been archived by the owner on Apr 9, 2024. It is now read-only.
Update README.md #11014
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: 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; |