File tree Expand file tree Collapse file tree 4 files changed +13909
-7892
lines changed
Expand file tree Collapse file tree 4 files changed +13909
-7892
lines changed Original file line number Diff line number Diff line change 11name : CI/CD Pipeline
22
3+ env :
4+ IS_ACT : " false"
5+
36on :
47 push :
58 branches :
@@ -116,10 +119,14 @@ jobs:
116119 if : always()
117120
118121 steps :
119- - name : Checkout repository
122+ - name : Checkout repository (with full history and tags)
120123 uses : actions/checkout@v4
121124 with :
122125 fetch-depth : 0
126+ fetch-tags : true
127+
128+ - name : Fetch all tags explicitly (extra safety)
129+ run : git fetch --tags --force
123130
124131 - name : Send Telegram notification
125132 env :
@@ -145,11 +152,7 @@ jobs:
145152 STATUS="❌ *Deploy failed*"
146153 fi
147154
148- VERSION=$(git tag --points-at HEAD)
149- if [ -z "$VERSION" ]; then
150- VERSION=$(git rev-parse --short HEAD)
151- fi
152-
155+ VERSION=$(git describe --tags --abbrev=0 || git rev-parse --short HEAD)
153156 BRANCH=$(git rev-parse --abbrev-ref HEAD)
154157 COMMIT=$(git rev-parse --short HEAD)
155158 REPO_URL="https://github.com/$GITHUB_REPOSITORY"
@@ -163,7 +166,7 @@ jobs:
163166 👤 *Author:* $LAST_AUTHOR
164167 🔗 *Repo:* $REPO_URL"
165168
166- curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage" \
167- -d chat_id=" ${TELEGRAM_CHAT_ID}" \
168- -d text=" $MESSAGE" \
169- -d parse_mode=Markdown
169+ curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage" \
170+ -d " chat_id=${TELEGRAM_CHAT_ID}" \
171+ -d " text=$MESSAGE" \
172+ -d " parse_mode=Markdown"
Original file line number Diff line number Diff line change @@ -21,11 +21,6 @@ pnpm-lock.yaml
2121coverage /
2222test-results /
2323
24- # Ignore general JSON/YAML in project root if not overridden
25- * .json
26- * .yml
27- * .yaml
28-
2924# Ignore editor settings (unless overridden in .prettierrc)
3025.vscode /
3126.idea /
You can’t perform that action at this time.
0 commit comments