Skip to content

Commit dd1874e

Browse files
committed
prepare-embargoed-branches: optionally prepare for MinGit backports
MinGit backports are similar to embargoed Git for Windows versions, but more limited in scope, and quite often, not even embargoed: Git for Windows is only ever released for the latest major Git version and its bugfix versions, whereas MinGit caters to 3rd party applications that often choose to stay behind a major version or three. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 24982d9 commit dd1874e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/prepare-embargoed-branches.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
name: prepare-embargoed-branches
2-
run-name: Prepare branches for embargoed Git ${{ inputs.version }}
2+
run-name: Prepare branches for embargoed ${{ inputs.mingit-only && 'Min' || '' }}Git ${{ inputs.version }}
33

44
on:
55
workflow_dispatch:
66
inputs:
77
version:
88
description: 'The Git version for which to prepare the branches'
99
required: true
10+
mingit-only:
11+
description: 'Only prepare the MinGit branches'
12+
default: false
13+
type: boolean
1014

1115
jobs:
1216
prepare-embargoed-branches:
@@ -15,7 +19,7 @@ jobs:
1519
- name: sanity check
1620
if: ${{ github.repository_owner == 'git-for-windows' }}
1721
run: echo "This action is not meant to be run on the Git for Windows repository" >&2 && exit 1
18-
- run: actions/checkout@v4
22+
- uses: actions/checkout@v4
1923
- name: identify actor
2024
id: actor
2125
uses: actions/github-script@v7
@@ -57,4 +61,4 @@ jobs:
5761
console.log(callGit(['config', '--global', `http.https://github.com/${context.repo.owner}/${repo}.extraHeader`, header]))
5862
}
5963
- name: Prepare embargoed branches
60-
run: sh -x ./prepare-embargoed-branches.sh "${{ inputs.version }}"
64+
run: sh -x ./prepare-embargoed-branches.sh ${{ inputs.mingit-only && '--mingit ' || ''}}"${{ inputs.version }}"

0 commit comments

Comments
 (0)