From 8090a2806cea3c9beb1812a5a66661f7cba5862e Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Wed, 30 Jan 2019 12:46:34 -0300 Subject: [PATCH] dlang/d2-release: Mark repository as D2_ONLY The new D2 tag should have the .D2-ready file with `ONLY` to mark it as D2_ONLY, so if CI is ran on it, it won't be converted again. --- bin/dlang/d2-release | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/dlang/d2-release b/bin/dlang/d2-release index ebde0ef..d1f0259 100755 --- a/bin/dlang/d2-release +++ b/bin/dlang/d2-release @@ -17,11 +17,17 @@ $beaver make DVER=2 d2conv set -x -# Commit the changes and tag +# Configure git user git config user.name "$(git for-each-ref --format="%(taggername)" \ refs/tags/$TRAVIS_TAG)" git config user.email "$(git for-each-ref --format="%(taggeremail)" \ refs/tags/$TRAVIS_TAG)" + +# Set the repo as D2-only +echo ONLY > .D2-ready +git add --no-verify .D2-ready + +# Commit the changes and tag git commit --no-verify -a -m 'Auto-convert to D2' # Create the new tag