Skip to content

Periodic Merges (6h) #4368

Periodic Merges (6h)

Periodic Merges (6h) #4368

# This action periodically merges base branches into staging branches.
# This is done to
# * prevent conflicts or rather resolve them early
# * make all potential breakage happen on the staging branch
# * and make sure that all major rebuilds happen before the staging
# branch get’s merged back into its base branch.
name: "Periodic Merges (6h)"
on:
schedule:
# * is a special character in YAML so you have to quote this string
# Merge every 6 hours
- cron: '0 */6 * * *'
workflow_dispatch:
permissions:
contents: read
jobs:
periodic-merge:

Check failure on line 21 in .github/workflows/periodic-merge-6h.yml

View workflow run for this annotation

GitHub Actions / Periodic Merges (6h)

Invalid workflow file

The workflow is not valid. .github/workflows/periodic-merge-6h.yml (Line: 21, Col: 3): Error calling workflow 'wolfgangwalther/nixpkgs/.github/workflows/periodic-merge.yml@52456be3ff5263ce21876549528a732d3eee86c5'. The nested job 'merge' is requesting 'contents: write, pull-requests: write', but is only allowed 'contents: read, pull-requests: none'.
strategy:
# don't fail fast, so that all pairs are tried
fail-fast: false
# certain branches need to be merged in order, like master->staging-next->staging
# and disabling parallelism ensures the order of the pairs below.
max-parallel: 1
matrix:
pairs:
- from: master
into: staging-next
- from: staging-next
into: staging
uses: ./.github/workflows/periodic-merge.yml
with:
from: ${{ matrix.pairs.from }}
into: ${{ matrix.pairs.into }}