We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ac383b commit ca11bafCopy full SHA for ca11baf
_assets/scripts/branch_version_generated.sh
@@ -3,10 +3,11 @@
3
set -euo pipefail
4
5
# Get latest tag
6
-latest_tag=$(git describe --tags develop)
+latest_tag=$(git describe --tags)
7
+branch_name="generated/${latest_tag}"
8
9
# Create branch
-git checkout -b "generated/${latest_tag}"
10
+git checkout -b "${branch_name}"
11
12
# Un-gitignore generated files
13
sed -i '' '/# generated files/,/^$/ s/^/#/' .gitignore
@@ -21,4 +22,4 @@ sed -i '' 's/-dirty$//' pkg/version/VERSION
21
22
git add .gitignore
23
git add .
24
git commit -m "feat_: version ${latest_tag} with generated files included"
-git push origin
25
+git push origin "${branch_name}"
0 commit comments