Skip to content
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

chore: Merge next-patch into next-minor #1135

Merged
merged 5 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/pr-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
jobs:
update-pr-labels:
name: Update PR Labels
runs-on: ubuntu-latest
steps:
- name: Update PR Labels
uses: "gravwell/pr-labels@v1"
with:
GITHUB_TOKEN: "${{ github.token }}"
name: Update PR Labels
on:
pull_request_target: {}
push: {}
permissions:
contents: read
pull-requests: write
47 changes: 47 additions & 0 deletions .github/workflows/sync-branches.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
jobs:
debug:
name: Debug
runs-on: ubuntu-latest
steps:
- name: "Echo (some of) github context"
run: |
echo ${{ github.repository }}
echo ${{ github.ref }}
echo ${{ github.ref_name }}

sync:
# Avoid running sync jobs on forks
if: "${{ github.repository == 'gravwell/wiki' }}"
strategy:
fail-fast: false
matrix:
branches:
- source_pattern: main
target_pattern: next-patch

- source_pattern: next-patch
target_pattern: next-minor

- source_pattern: next-minor
target_pattern: next-major

name: "${{ matrix.branches.source_pattern }} => ${{ matrix.branches.target_pattern }}"
runs-on: ubuntu-latest
steps:
- name: Open/Update PR
id: sync-branches
uses: "gravwell/sync-branches@v1"
with:
GITHUB_TOKEN: "${{ github.token }}"
source_pattern: ${{ matrix.branches.source_pattern }}
target_pattern: ${{ matrix.branches.target_pattern }}
use_intermediate_branch: "True"
source_conflict_label: "src conflict"
target_conflict_label: "conflict"

name: Sync branches
on:
push: {}
permissions:
contents: write
pull-requests: write