Skip to content

Commit 6d98fe1

Browse files
authored
Merge pull request #70 from HXSecurity/main
changelog
2 parents 3c6e0f0 + fc70619 commit 6d98fe1

File tree

4 files changed

+41
-12
lines changed

4 files changed

+41
-12
lines changed

.github/workflows/build_and_upload_package.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,26 @@ name: Build DongTai Core Package and push to Ali OSS
33
on:
44
pull_request:
55
branches: [ main ]
6+
paths-ignore:
7+
- '.github/**'
8+
- 'changes/**'
9+
- 'deploy/**'
10+
- '**.md'
11+
- '**.yml'
12+
- '**.xml'
13+
- 'LICENSE'
14+
- '.gitignore'
615
push:
716
branches: [ main ]
17+
paths-ignore:
18+
- '.github/**'
19+
- 'changes/**'
20+
- 'deploy/**'
21+
- '**.md'
22+
- '**.yml'
23+
- '**.xml'
24+
- 'LICENSE'
25+
- '.gitignore'
826
jobs:
927
build:
1028
if: ${{ github.event_name == 'push' }}

.github/workflows/release.yml

+15-12
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: Build DongTai Core Package and push to Ali OSS
22

33
on:
4-
push:
5-
branches: [ "release-*" ]
4+
release:
5+
types: [ created, edited ]
66

77
jobs:
88
build:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
1012

1113
strategy:
1214
max-parallel: 4
@@ -22,25 +24,26 @@ jobs:
2224

2325
- id: release
2426
run: |
25-
VERSION=`echo ${GITHUB_REF##*/} | awk -F'-' '{print $2}'`
26-
echo "::set-output name=VERSION::$VERSION"
27-
28-
- name: Get release version
29-
id: get_release_version
30-
run: |
31-
V=`echo ${{ steps.release.outputs.VERSION }} | sed -e's/v//g' | sed -e's/V//g'`; \
32-
echo ::set-output name=VERSION::${V}
27+
TAG_NAME=${{ github.event.release.tag_name }}
28+
ID=`echo ${TAG_NAME##v}`
29+
echo "::set-output name=VERSION::$ID"
3330
3431
- name: Generate version file
3532
run: |
3633
cd ${{ github.workspace }} && \
37-
echo "${{ github.event.repository.name }},version,${{ steps.get_release_version.outputs.VERSION }}" >> version.txt && \
34+
echo "${{ github.event.repository.name }},version,${{ steps.release.outputs.VERSION }}" >> version.txt && \
3835
echo "${{ github.event.repository.name }},commit_hash,${GITHUB_SHA}" >> version.txt \
3936
4037
- name: Replace setup cfg
4138
run: |
42-
sed -i -e 's/version = .*$/version = ${{ steps.get_release_version.outputs.VERSION }}/g' setup.cfg
39+
git config --global user.name 'exexute'
40+
git config --global user.email '1528360120@qq.com'
41+
git checkout -b "release-${{ steps.release.outputs.VERSION }}"
42+
sed -i -e 's/version = .*$/version = ${{ steps.release.outputs.VERSION }}/g' setup.cfg
4343
cat setup.cfg
44+
git add .
45+
git commit -m "Update: change version to $NEW_VERSION"
46+
git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git" HEAD:"release-$NEW_VERSION"
4447
4548
- name: Build DongTai Core Package
4649
run: |

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change log
22

3+
## [1.1.4](https://github.com/HXSecurity/DongTai-openapi/releases/tag/v1.1.4)-2021-12-18
4+
* Function
5+
* Increase hard-coded vulnerabilities
6+
37
## [1.1.3](https://github.com/HXSecurity/dongtai-core/releases/tag/v1.1.3)-2021-12-03
48

59
* Function

CHANGELOG_CN.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# 升级日志
22

3+
## [1.1.4](https://github.com/HXSecurity/DongTai-openapi/releases/tag/v1.1.4) - 2021-12-18
4+
* 功能
5+
* 增加硬编码漏洞
6+
37
## [1.1.3](https://github.com/HXSecurity/dongtai-core/releases/tag/v1.1.3)-2021-12-03
48

59
* 功能

0 commit comments

Comments
 (0)