You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/sync_branches.yml
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,6 @@
2
2
name: Sync Branches
3
3
on:
4
4
workflow_call:
5
-
inputs:
6
-
from:
7
-
description: "The prior release from which to sync"
8
-
required: true
9
-
type: string
10
-
to:
11
-
description: "The active release in which to sync"
12
-
required: true
13
-
type: string
14
5
secrets:
15
6
# PAT setup with content:write and pull_request:write
16
7
pat_token:
@@ -21,12 +12,21 @@ permissions: {}
21
12
env:
22
13
SYNC_COMMITTER_EMAIL: bot@mixxx.org
23
14
SYNC_COMMITTER_NAME: Mixxx Bot
15
+
16
+
# This variable stores the map of Mixxx branches that still being developed. The key is the branch receiving support and the value is the next version in line
17
+
# NOTE: this must be valid JSON!
18
+
ACTIVE_VERSIONS: |-
19
+
{"2.5": "2.6", "2.6": "main"}
20
+
24
21
jobs:
25
22
sync-branches:
26
23
runs-on: ubuntu-latest
27
24
permissions:
28
25
contents: write
29
26
pull-requests: write
27
+
env:
28
+
FROM: ${{ github.ref }}
29
+
TO: ${{ fromJSON(env.ACTIVE_VERSIONS)[github.ref] }}
30
30
steps:
31
31
# Using an app is the recommended way to allow recursive operations.
32
32
# Apps offer a way to have reduced scoped permissions (like GITHUB_TOKEN)
0 commit comments