Skip to content

Commit

Permalink
Merge pull request #70 from HXSecurity/main
Browse files Browse the repository at this point in the history
changelog
  • Loading branch information
Bidaya0 authored Dec 20, 2021
2 parents 3c6e0f0 + fc70619 commit 6d98fe1
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 12 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build_and_upload_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,26 @@ name: Build DongTai Core Package and push to Ali OSS
on:
pull_request:
branches: [ main ]
paths-ignore:
- '.github/**'
- 'changes/**'
- 'deploy/**'
- '**.md'
- '**.yml'
- '**.xml'
- 'LICENSE'
- '.gitignore'
push:
branches: [ main ]
paths-ignore:
- '.github/**'
- 'changes/**'
- 'deploy/**'
- '**.md'
- '**.yml'
- '**.xml'
- 'LICENSE'
- '.gitignore'
jobs:
build:
if: ${{ github.event_name == 'push' }}
Expand Down
27 changes: 15 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: Build DongTai Core Package and push to Ali OSS

on:
push:
branches: [ "release-*" ]
release:
types: [ created, edited ]

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write

strategy:
max-parallel: 4
Expand All @@ -22,25 +24,26 @@ jobs:

- id: release
run: |
VERSION=`echo ${GITHUB_REF##*/} | awk -F'-' '{print $2}'`
echo "::set-output name=VERSION::$VERSION"
- name: Get release version
id: get_release_version
run: |
V=`echo ${{ steps.release.outputs.VERSION }} | sed -e's/v//g' | sed -e's/V//g'`; \
echo ::set-output name=VERSION::${V}
TAG_NAME=${{ github.event.release.tag_name }}
ID=`echo ${TAG_NAME##v}`
echo "::set-output name=VERSION::$ID"
- name: Generate version file
run: |
cd ${{ github.workspace }} && \
echo "${{ github.event.repository.name }},version,${{ steps.get_release_version.outputs.VERSION }}" >> version.txt && \
echo "${{ github.event.repository.name }},version,${{ steps.release.outputs.VERSION }}" >> version.txt && \
echo "${{ github.event.repository.name }},commit_hash,${GITHUB_SHA}" >> version.txt \
- name: Replace setup cfg
run: |
sed -i -e 's/version = .*$/version = ${{ steps.get_release_version.outputs.VERSION }}/g' setup.cfg
git config --global user.name 'exexute'
git config --global user.email '[email protected]'
git checkout -b "release-${{ steps.release.outputs.VERSION }}"
sed -i -e 's/version = .*$/version = ${{ steps.release.outputs.VERSION }}/g' setup.cfg
cat setup.cfg
git add .
git commit -m "Update: change version to $NEW_VERSION"
git push "https://$GITHUB_ACTOR:[email protected]/$GITHUB_REPOSITORY.git" HEAD:"release-$NEW_VERSION"
- name: Build DongTai Core Package
run: |
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change log

## [1.1.4](https://github.com/HXSecurity/DongTai-openapi/releases/tag/v1.1.4)-2021-12-18
* Function
* Increase hard-coded vulnerabilities

## [1.1.3](https://github.com/HXSecurity/dongtai-core/releases/tag/v1.1.3)-2021-12-03

* Function
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG_CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 升级日志

## [1.1.4](https://github.com/HXSecurity/DongTai-openapi/releases/tag/v1.1.4) - 2021-12-18
* 功能
* 增加硬编码漏洞

## [1.1.3](https://github.com/HXSecurity/dongtai-core/releases/tag/v1.1.3)-2021-12-03

* 功能
Expand Down

0 comments on commit 6d98fe1

Please sign in to comment.