Skip to content

Commit a660f5b

Browse files
committed
sync-mailing-list-mirror: force push on workflow_dispatch
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 3b2294d commit a660f5b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/sync-mailing-list-mirror.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jobs:
2626
set -x
2727
echo "org=${TARGET_GITHUB_REPOSITORY%%/*}" >>$GITHUB_OUTPUT &&
2828
echo "repo=${TARGET_GITHUB_REPOSITORY#*/}" >>$GITHUB_OUTPUT &&
29+
test workflow_dispatch != '${{ github.event_name }}' || {
30+
echo "result=true" >>$GITHUB_OUTPUT
31+
exit 0
32+
}
2933
source="$(git ls-remote "$SOURCE_REPOSITORY" master)" &&
3034
target="$(git ls-remote https://github.com/"$TARGET_GITHUB_REPOSITORY" lore-$LORE_EPOCH)" &&
3135
echo "result=$(test "${source%% *}" = "${target%% *}" && echo false || echo true)" >>$GITHUB_OUTPUT

0 commit comments

Comments
 (0)