Skip to content

Commit b0b7ebe

Browse files
committed
Fix releases identical tag
1 parent c26810a commit b0b7ebe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,11 @@ jobs:
6666

6767
- name: Create Release
6868
run: |
69+
timestamp=$(date +%s)
70+
tag_name="v${{ matrix.php_version }}-${timestamp}"
6971
response=$(curl -s -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" -X POST \
7072
-d '{
71-
"tag_name": "v${{ matrix.php_version }}",
73+
"tag_name": "'"${tag_name}"'",
7274
"name": "Release unit-php${{ matrix.php_version }}",
7375
"draft": false,
7476
"prerelease": false

0 commit comments

Comments
 (0)