Skip to content

Commit d73b85f

Browse files
authored
Update build-test.yml
1 parent ab9ff9d commit d73b85f

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/build-test.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,20 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v3
1515

16+
1617
- name: Generate Tag
1718
run: |
1819
TAG="release-$(date +'%Y.%m.%d')"
1920
echo "TAG=$TAG" >> $GITHUB_ENV # 设置为全局环境变量
2021
2122
- name: Print Tag
2223
run: |
23-
echo "Tag is: $TAG" # 直接引用环境变量
24-
24+
echo "Tag is: $TAG" # 直接引用环境变量
25+
26+
- name: Print Tag
27+
run: |
28+
echo "Tag steps.tag.outputs.ta is: ${{ steps.tag.outputs.tag }}"
29+
2530
# - name: Install libraries
2631
# run: |
2732
# sudo apt update
@@ -99,21 +104,24 @@ jobs:
99104
# working-directory: ${{github.workspace}}/build
100105
# shell: bash
101106
# run: cmake --build . --config $BUILD_TYPE
107+
102108
# - name: Create ZIP
103109
# run: |
104110
# cd ${{github.workspace}}/build
105111
# zip -r ../release.zip ./*
112+
106113
# - name: Create Git Tag
107114
# run: |
108115
# TAG="release-$(date +'%Y.%m.%d').$(git rev-parse --short HEAD)"
109116
# git tag $TAG
110117
# git push origin $TAG
111-
# echo "tag=$TAG" >> $GITHUB_OUTPUT
118+
# echo "TAG=$TAG" >> $GITHUB_ENV # 设置为全局环境变量
112119
# env:
113120
# GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
114-
# - name: Debug Tag
121+
122+
# - name: Print TagName
115123
# run: |
116-
# echo "Tag will be: ${{ steps.tag.outputs.tag }}"
124+
# echo "Tag is: $TAG" # 直接引用环境变量
117125

118126
# - name: Upload Release Asset
119127
# uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)