From 730247c657d5576dc1e5c6f87529aff4236f55e1 Mon Sep 17 00:00:00 2001 From: Conrad Date: Wed, 6 May 2020 14:01:52 +0200 Subject: [PATCH] Updated GitHub Action --- .github/workflows/cc.yml | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/.github/workflows/cc.yml b/.github/workflows/cc.yml index ef43156..b87c5b6 100644 --- a/.github/workflows/cc.yml +++ b/.github/workflows/cc.yml @@ -3,18 +3,17 @@ name: CodeCleanup on: [pull_request] jobs: - cleanup_tasks: - runs-on: ubuntu-latest + cleanup_tasks: + runs-on: ubuntu-latest - steps: - - name: Cloning the repository - uses: actions/checkout@v1 - with: - fetch-depth: 1 - - name: Prettify the JS Code - uses: creyD/prettier_action@master - with: - branch: ${{ github.head_ref }} - prettier_options: '--write **/*.js' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - name: Cloning the repository + uses: actions/checkout@v2 + with: + ref: ${{ github.head_ref }} + - name: Prettify the JS Code + uses: creyD/prettier_action@master + with: + prettier_options: "--write **/*.js" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}