From c2cde6bb9c1a43a69a276a20ad083d88b6fa0693 Mon Sep 17 00:00:00 2001 From: Braxton Hall Date: Thu, 27 Oct 2022 00:45:28 -0700 Subject: Workflow (#56) * Make the people check more rigorous * Actually install ajv before trying to use it in an action * Automatically prettify people.json * Rename workflow step * Make sure correct branch is checked out * Use tabs--- .github/workflows/pull.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to '.github/workflows/pull.yml') 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 -- cgit v1.2.3-70-g09d2