Skip to content

Commit 9c89fee

Browse files
committed
123213
1 parent 1641474 commit 9c89fee

File tree

6 files changed

+11
-118
lines changed

6 files changed

+11
-118
lines changed

.github/workflows/create-git-branch-package-on-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
5858
# create version file
5959
mkdir -p version
60-
echo "${{ env.TAG_VERSION }}" > version/version
60+
echo -n "${{ env.TAG_VERSION }}" > version/version
6161
6262
echo "Version file content after update:"
6363
cat version/version

.github/workflows/create-git-branch-packge-on-release.yml

Lines changed: 0 additions & 105 deletions
This file was deleted.

.github/workflows/sdk-releaser.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Create version file
2929
run: |
3030
mkdir -p version
31-
echo "${{ env.TAG_VERSION }}" > version/version
31+
echo -n "${{ env.TAG_VERSION }}" > version/version
3232
3333
- name: Set up Go
3434
uses: actions/setup-go@v5
@@ -104,7 +104,7 @@ jobs:
104104
- name: Create version file
105105
run: |
106106
mkdir -p version
107-
echo "${{ env.TAG_VERSION }}" > version/version
107+
echo -n "${{ env.TAG_VERSION }}" > version/version
108108
109109
- name: Set up Go
110110
uses: actions/setup-go@v4
@@ -154,7 +154,7 @@ jobs:
154154
- name: Create version file
155155
run: |
156156
mkdir -p version
157-
echo "${{ env.TAG_VERSION }}" > version/version
157+
echo -n "${{ env.TAG_VERSION }}" > version/version
158158
159159
- name: Set up Go
160160
uses: actions/setup-go@v5

.github/workflows/unused/update-release-file.ymlbak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
# Step 2: Update version file
2222
- name: Update version file
2323
run: |
24-
echo "${{ env.TAG_VERSION }}" > version/version # 将 tag 写入 version 文件
24+
echo -n "${{ env.TAG_VERSION }}" > version/version # 将 tag 写入 version 文件
2525

2626
# Step 3: Archive the code
2727
- name: Create source archive

.github/workflows/unused/upgrade-version-by-tag.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# upgrade_version:
1414
# runs-on: ubuntu-latest
1515
# env:
16-
# TAG_VERSION: ${{ github.ref_name }}
16+
# TAG_VERSION: ${{ github.ref_name }}
1717
# BRANCH_NAME: update-tag-version-${{ github.ref_name }}
1818
# steps:
1919
# # Step 1: Checkout the original repository's code
@@ -37,20 +37,19 @@
3737
# # Step 4: Update version file
3838
# - name: Update version file
3939
# run: |
40-
# echo "${{ env.TAG_VERSION }}" > version/version
41-
40+
# echo -n "${{ env.TAG_VERSION }}" > version/version
4241

4342
# # Step 5: Create a Pull Request from the new branch to the original repository
4443
# - name: Create Pull Request
4544
# id: create_pr
4645
# uses: peter-evans/create-pull-request@v7.0.1
4746
# with:
4847
# branch-token: ${{ secrets.GITHUB_TOKEN }}
49-
# token: ${{ secrets.GITHUB_TOKEN }}
50-
# # token: ${{ secrets.BOT_TOKEN }}
48+
# token: ${{ secrets.GITHUB_TOKEN }}
49+
# # token: ${{ secrets.BOT_TOKEN }}
5150
# commit-message: "Update version to ${{ env.TAG_VERSION }}"
5251
# branch: ${{ env.BRANCH_NAME }}
5352
# delete-branch: true
54-
# base: main
53+
# base: main
5554
# title: "Update version to ${{ env.TAG_VERSION }}"
5655
# body: "This PR updates the version file to the new tag version ${{ env.TAG_VERSION }}."

.github/workflows/update-version-file-on-release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ jobs:
9898
core.warning(`Could not find or update release for tag ${tagName}: ${error.message}`);
9999
}
100100
101-
102101
# # Step 8: Create custom source code packages
103102
# - name: Create custom source code packages
104103
# run: |
@@ -159,7 +158,7 @@ jobs:
159158

160159
# mkdir -p version
161160

162-
# echo "${{ env.TAG_VERSION }}" > version/version
161+
# echo -n "${{ env.TAG_VERSION }}" > version/version
163162

164163
# echo "Version file content after update:"
165164
# cat version/version

0 commit comments

Comments
 (0)