mirror of
https://github.com/Koenkk/zigbee-OTA.git
synced 2026-06-24 10:58:33 +00:00
Limit update manifests concurrency
This commit is contained in:
10
.github/workflows/update_manifests.yml
vendored
10
.github/workflows/update_manifests.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user