aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/pull.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/pull.yml')
-rw-r--r--.github/workflows/pull.yml13
1 files changed, 12 insertions, 1 deletions
diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml
index 266b8f8..168d24a 100644
--- a/.github/workflows/pull.yml
+++ b/.github/workflows/pull.yml
@@ -15,10 +15,21 @@ jobs:
node: [ 16.x ]
steps:
- - uses: actions/checkout@v2
+ - name: Checkout
+ uses: actions/checkout@v2
+ with:
+ ref: ${{ github.head_ref }}
+ fetch-depth: 0
- name: Install modules with Node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
+ - name: Install packages
+ run: yarn install
- name: Check people
run: node bin/checkPeople.js ${{ github.actor }}
+ - name: Prettify people
+ uses: creyD/prettier_action@v4.2
+ with:
+ same_commit: true
+ prettier_options: --use-tabs --write people.json