From 550321a654d1d23d4b67e70371c23be5768e4d1e Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Sun, 24 Nov 2024 20:39:05 +0100 Subject: [PATCH] Limit update manifests concurrency --- .github/workflows/update_manifests.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/update_manifests.yml b/.github/workflows/update_manifests.yml index d983409..207ca04 100644 --- a/.github/workflows/update_manifests.yml +++ b/.github/workflows/update_manifests.yml @@ -8,6 +8,11 @@ permissions: contents: write pull-requests: read +# Limit concurrency per branch to prevent push issues. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: false + jobs: update-manifests: runs-on: ubuntu-latest @@ -30,6 +35,10 @@ jobs: - name: Build run: pnpm run build + - name: Pull before updating manifest + run: | + git pull + - name: Update manifests uses: actions/github-script@v7 with: @@ -44,4 +53,5 @@ jobs: git config --global user.email 'github-actions[bot]@users.noreply.github.com' git add . git commit -m "Update after PR with OTA images merged" || echo 'Nothing to commit' + git pull --rebase git push