Limit update manifests concurrency

This commit is contained in:
Koen Kanters
2024-11-24 20:39:05 +01:00
parent ee3ee5778f
commit 550321a654

View File

@@ -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