From aa634f0a204f4f4f8def3e7c3918216be525e03c Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Thu, 29 Apr 2021 09:27:41 +0200 Subject: [PATCH] Update workflow.yml --- .github/workflows/workflow.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index dfedb7f7..445097c9 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -15,6 +15,7 @@ jobs: # Run linter to ensure new code respect coding rules lint: name: Lint code + if: false runs-on: ubuntu-latest steps: - name: Checkout repository @@ -71,10 +72,12 @@ jobs: format: name: Format code runs-on: ubuntu-latest - needs: [ build, analyze ] + # needs: [ build, analyze ] steps: - name: Checkout repository uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Setup Dprint run: | curl -fsSL https://dprint.dev/install.sh | sh @@ -84,14 +87,17 @@ jobs: - name: Publish formatted code if: github.event_name == 'pull_request' && github.ref != 'refs/heads/master' run: | - git add --update - git push + git checkout ${{ github.ref }} + git status + # git add --update + # git commit -m "Auto-format code" + # git push # Update plugins and template indexes, along with README.md update-indexes: name: Publish rebuilt metrics indexes runs-on: ubuntu-latest - needs: [ format ] + needs: [ build, analyze, format ] if: github.event_name == 'push' && github.ref == 'refs/heads/master' steps: - name: Checkout repository