Skip to content

Commit

Permalink
Limit update manifests concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Nov 24, 2024
1 parent ee3ee57 commit 550321a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/update_manifests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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

0 comments on commit 550321a

Please sign in to comment.