Skip to content

Commit

Permalink
dlang/d2-release: Mark repository as D2_ONLY
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
leandro-lucarella-sociomantic committed Jan 31, 2019
1 parent c883a5d commit 8090a28
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/dlang/d2-release
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8090a28

Please sign in to comment.