Repository navigation
feat: add sync-main-to-edge workflow + .gitupstream #559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -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 | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Every other uses: nsheaps/github-actions/.github/actions/checkout-as-app@603052841cd49b9fdc99bc32979ff9c45c9b669e # checkout-as-app@main(see
Suggested change
Caveat: the file header notes this is sync-files–managed from nsheaps/.github. For the SHA pin to stick, the template in nsheaps/.github#63 also needs to be pinned — otherwise the next sync will revert it back to |
||||||
| with: | ||||||
| test_mode: ${{ inputs.test_mode == true }} | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ✅ Verified the
The reusable workflow in nsheaps/github-actions#24 declares Nit-level alternative (non-blocking): |
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ↩️ Answering open question #1: pre-seeding Also worth noting: the PR body says " Schema ( |
||
Uh oh!
There was an error while loading. Please reload this page.