Skip to content

Commit 7b6c324

Browse files
committed
tag-git: allow tagging in a fork
When tagging in a fork of `git-for-windows-automation`, we should also pull the `build-extra` and `git` repositories from the same user's (or org's) forked repositories. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 6354dfd commit 7b6c324

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/tag-git.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
owner:
1212
description: 'Optionally override from where to fetch the specified rev'
1313
required: true
14-
default: git-for-windows
14+
default:
1515
repo:
1616
description: 'Optionally override from where to fetch the specified rev'
1717
required: true
@@ -31,7 +31,7 @@ on:
3131

3232
env:
3333
GPG_OPTIONS: "--batch --yes --no-tty --list-options no-show-photos --verify-options no-show-photos --pinentry-mode loopback"
34-
OWNER: "${{github.event.inputs.owner}}"
34+
OWNER: "${{github.event.inputs.owner || github.repository_owner }}"
3535
REPO: "${{github.event.inputs.repo}}"
3636
REV: "${{github.event.inputs.rev}}"
3737
RELEASE_BRANCH: "${{github.event.inputs.release-branch}}"
@@ -81,7 +81,7 @@ jobs:
8181
git config --global user.email "$USER_EMAIL" &&
8282
echo "PACKAGER=$USER_NAME <$USER_EMAIL>" >> $GITHUB_ENV
8383
- name: Clone build-extra
84-
run: git clone --single-branch -b "$RELEASE_BRANCH" https://github.com/git-for-windows/build-extra $RUNNER_TEMP/build-extra
84+
run: git clone --single-branch -b "$RELEASE_BRANCH" https://github.com/$OWNER/build-extra $RUNNER_TEMP/build-extra
8585
- name: Prepare home directory for GPG signing
8686
if: env.GPGKEY != ''
8787
run: |

0 commit comments

Comments
 (0)