From e90b004636c3be3e8ffd70513d2f1918af439fa0 Mon Sep 17 00:00:00 2001 From: "alex-nsheaps[bot]" <279051173+alex-nsheaps[bot]@users.noreply.github.com> Date: Thu, 28 May 2026 16:50:27 -0400 Subject: [PATCH] feat: add sync-main-to-edge workflow + .gitupstream Calls the reusable workflow at nsheaps/github-actions/.github/workflows/sync-main-to-edge.yaml@main on every push to main, syncing main into the */edge branches listed in .gitupstream. Depends on nsheaps/github-actions#24 landing first. Refs nsheaps/.ai-agent-alex#685. Co-Authored-By: Agent Alex Picard --- .github/workflows/sync-main-to-edge.yaml | 24 ++++++++++++++++++++++++ .gitupstream | 7 +++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/sync-main-to-edge.yaml create mode 100644 .gitupstream diff --git a/.github/workflows/sync-main-to-edge.yaml b/.github/workflows/sync-main-to-edge.yaml new file mode 100644 index 000000000..8e4c923c2 --- /dev/null +++ b/.github/workflows/sync-main-to-edge.yaml @@ -0,0 +1,24 @@ +# This file is managed by nsheaps/.github (sync-files). +# Source: https://github.com/nsheaps/.github/blob/main/ansible/templates/.github/workflows/sync-main-to-edge.yaml +# Edit-in-place will be overwritten on the next sync. +name: Sync main to edge + +on: + push: + branches: [main] + workflow_dispatch: + inputs: + test_mode: + description: 'Run in test mode (no push)' + type: boolean + default: false + +permissions: + contents: write + +jobs: + sync: + name: Sync main -> */edge + uses: nsheaps/github-actions/.github/workflows/sync-main-to-edge.yaml@main + with: + test_mode: ${{ inputs.test_mode == true }} diff --git a/.gitupstream b/.gitupstream new file mode 100644 index 000000000..4ef9d7a6b --- /dev/null +++ b/.gitupstream @@ -0,0 +1,7 @@ +# Configures sync-main-to-edge workflow. Schema: +# https://github.com/nsheaps/github-actions/blob/main/.github/workflows/sync-main-to-edge.yaml +version: 1 +sync: + - upstream: main + targets: + - alex/edge