From 06a15954ce221e0f1de48a6e7cd98d74a41e6b9f Mon Sep 17 00:00:00 2001 From: getlarge Date: Tue, 13 Feb 2024 18:23:23 +0100 Subject: [PATCH] chore: update stefanzweifel/git-auto-commit-action --- .github/workflows/ci.yaml | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f6524e26..727e6755 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -32,6 +32,10 @@ on: - published - edited +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-ci + cancel-in-progress: true + env: NODE_VERSION: 20.x NODE_OPTIONS: --max_old_space_size=6144 @@ -291,23 +295,6 @@ jobs: node-version: ${{ env.NODE_VERSION }} token: ${{ secrets.GITHUB_TOKEN }} - # this step now goes in conflict with package.json regeneration via ESLint @nx/dependency-checks rule - # - name: Regenerate backend apps package.json - # if: needs.init.outputs.should-update-packages == 'true' - # run: NX_CLOUD_DISTRIBUTED_EXECUTION=false yarn refresh-pkg-json - - # - name: Add, commit and push backend package.json - # if: needs.init.outputs.should-update-packages == 'true' - # id: commit-pkg - # uses: stefanzweifel/git-auto-commit-action@v4 - # with: - # commit_message: 'chore: regenerate backend package*.json [skip ci]' - # file_pattern: 'apps/**/package*.json' - # commit_options: '--no-verify' - - # - if: steps.commit-pkg.outputs.changes_detected == 'true' - # run: echo "BASE_DEPTH=$((${{ env.BASE_DEPTH }} + 1))" >> $GITHUB_ENV - - name: Regenerate frontend models if: needs.init.outputs.should-update-models == 'true' run: yarn ng:openapi @@ -319,7 +306,7 @@ jobs: - name: Add, commit and push generated models if: needs.init.outputs.should-update-models == 'true' id: commit-ng-models - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: 'chore: regenerate frontend models [skip ci]' file_pattern: 'libs/ng/shared/open-api/src/lib/generated/*'