From b7732537c459952ef2c4e47f8f975732bbf8fc1c Mon Sep 17 00:00:00 2001 From: Tom Theisel Date: Thu, 18 May 2023 06:35:16 +1000 Subject: [PATCH] ci: amend workflow (#33) --- .github/workflows/ci.yml | 10 ++++++---- .github/workflows/format.yml | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ee40d3..e71835c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,17 +4,20 @@ on: push: branches: - main - - next pull_request: paths-ignore: - - '**/*.md' + - ".vscode/**" + - "**/*.md" -concurrency: ${{ github.workflow }}-${{ github.ref }} +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} + cancel-in-progress: true jobs: format: name: Format + if: github.ref_name == 'main' uses: ./.github/workflows/format.yml secrets: inherit with: @@ -23,7 +26,6 @@ jobs: test: name: Test runs-on: ubuntu-latest - needs: [format] strategy: fail-fast: false diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 755ca70..8f2449d 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -35,4 +35,4 @@ jobs: uses: stefanzweifel/git-auto-commit-action@v4 with: branch: ${{ inputs.ref }} - commit_message: 'chore(style): [ci] format' \ No newline at end of file + commit_message: 'style: [ci] format' \ No newline at end of file