-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move windows trigger tag creation in the windows step group
- Loading branch information
Github Action
committed
Jul 4, 2024
1 parent
0308780
commit 1f9a626
Showing
5 changed files
with
16 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,15 @@ | |
|
||
set -euox pipefail | ||
|
||
git config --global user.email "[email protected]" | ||
git config --global user.name "Github Action" | ||
git remote set-url origin "[email protected]:cardano-foundation/cardano-wallet.git" | ||
|
||
TAG="release-candidate-tag" | ||
date=$(git show -s --format=%ci $TAG | awk '{print $1}') | ||
DTAG="$TAG-$date" | ||
date=$(git show -s --format=%ci | awk '{print $1}') | ||
DTAG="$TAG/$date" | ||
|
||
git remote set-url origin \ | ||
"https://$GITHUB_TOKEN@github.com/cardano-foundation/cardano-wallet.git" | ||
git tag --delete "$DTAG" || true | ||
git push origin --delete "$DTAG" || true | ||
git tag "$DTAG" "$BUILDKITE_COMMIT" | ||
git push origin "$DTAG" | ||
git push origin "$DTAG" |