From 8ebebcb0d320ee352413d77e108bb07958600ea9 Mon Sep 17 00:00:00 2001 From: msclock Date: Thu, 12 Oct 2023 11:02:36 +0800 Subject: [PATCH] ci: add release needs jobs Signed-off-by: msclock --- .github/workflows/ci.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 456b1ef..0a9744e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,10 @@ on: push: pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: pre-commit: @@ -37,6 +41,7 @@ jobs: runs-on: ubuntu-latest permissions: contents: write # write for semantic-release + needs: [pre-commit] steps: - name: Checkout @@ -75,9 +80,3 @@ jobs: conventional-changelog-conventionalcommits env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - # - name: Push updates to branch for major version - # if: steps.semantic.outputs.new_release_published == 'true' - # run: git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/v${{steps.semantic.outputs.new_release_major_version}} - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}