From 510018b6401c6bbe8749f78ef3e7454a9cc1168f Mon Sep 17 00:00:00 2001 From: niuniu Date: Fri, 3 Jan 2020 00:08:17 +0800 Subject: [PATCH 1/7] Create main.yml --- .github/workflows/main.yml | 54 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..ca8611d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,54 @@ +name: Create Release + +on: + push: + branches: + - master + +jobs: + build: + name: Create Release + runs-on: ubuntu-latest + steps: +# - name: Set up Go 1.13 +# uses: actions/setup-go@v1 +# with: +# go-version: 1.13 +# id: go + + - name: Check out source code + uses: actions/checkout@master + +# - name: Build +# env: +# ACCESS_TOKEN: ${{ secrets.GITHUB_ACTION_TOKEN }} +# run: git config --global url."https://beyond5959:${ACCESS_TOKEN}@github.com".insteadOf "https://github.com" && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ones-third-importer main.go + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + with: + tag_name: ${{ github.sha }} + release_name: Release ${{ github.sha }} + body: | + Changes in this Release + - First Change + - Second Change + draft: false + prerelease: false + +# - name: Compress and package +# run: tar zcvf ./ones-third-importer.tar.gz ./conf ./ones-third-importer + +# - name: Upload Release Asset +# id: upload-release-asset +# uses: actions/upload-release-asset@v1.0.1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps +# asset_path: ./ones-third-importer.tar.gz +# asset_name: ones-third-importer.tar.gz +# asset_content_type: application/x-gzip From d4fd02fc40974e0adf78ec9014aee0f33823f423 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 2 Jan 2020 16:08:41 +0000 Subject: [PATCH 2/7] Bump mixin-deep from 1.3.1 to 1.3.2 in /lib/three Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2. - [Release notes](https://github.com/jonschlinkert/mixin-deep/releases) - [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2) Signed-off-by: dependabot[bot] --- lib/three/yarn.lock | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/three/yarn.lock b/lib/three/yarn.lock index a46866c..ebbce1e 100644 --- a/lib/three/yarn.lock +++ b/lib/three/yarn.lock @@ -709,7 +709,7 @@ is-extendable@^0.1.0, is-extendable@^0.1.1: is-extendable@^1.0.1: version "1.0.1" - resolved "http://registry.npm.taobao.org/is-extendable/download/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" dependencies: is-plain-object "^2.0.4" @@ -757,7 +757,7 @@ is-path-inside@^1.0.0: is-plain-object@^2.0.1, is-plain-object@^2.0.3, is-plain-object@^2.0.4: version "2.0.4" - resolved "http://registry.npm.taobao.org/is-plain-object/download/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" + resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" dependencies: isobject "^3.0.1" @@ -801,7 +801,7 @@ isobject@^2.0.0: isobject@^3.0.0, isobject@^3.0.1: version "3.0.1" - resolved "http://registry.npm.taobao.org/isobject/download/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: version "3.2.2" @@ -1003,8 +1003,8 @@ minimist@^1.1.0: resolved "http://registry.npm.taobao.org/minimist/download/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" mixin-deep@^1.2.0: - version "1.3.1" - resolved "http://registry.npm.taobao.org/mixin-deep/download/mixin-deep-1.3.1.tgz#a49e7268dce1a0d9698e45326c5626df3543d0fe" + version "1.3.2" + resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566" dependencies: for-in "^1.0.2" is-extendable "^1.0.1" From 5c50c0e46a7fe856f3a5275358f2e8b2e515f9e0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 2 Jan 2020 16:08:43 +0000 Subject: [PATCH 3/7] Bump extend from 3.0.1 to 3.0.2 in /lib/three Bumps [extend](https://github.com/justmoon/node-extend) from 3.0.1 to 3.0.2. - [Release notes](https://github.com/justmoon/node-extend/releases) - [Changelog](https://github.com/justmoon/node-extend/blob/master/CHANGELOG.md) - [Commits](https://github.com/justmoon/node-extend/compare/v3.0.1...v3.0.2) Signed-off-by: dependabot[bot] --- lib/three/yarn.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/three/yarn.lock b/lib/three/yarn.lock index a46866c..6a3ea5f 100644 --- a/lib/three/yarn.lock +++ b/lib/three/yarn.lock @@ -320,8 +320,8 @@ extend-shallow@^3.0.0, extend-shallow@^3.0.2: is-extendable "^1.0.1" extend@^3.0.0: - version "3.0.1" - resolved "http://registry.npm.taobao.org/extend/download/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" extglob@^2.0.4: version "2.0.4" From 76084b51728dacd7df8197ce8c3a719b1793b1c8 Mon Sep 17 00:00:00 2001 From: niuniu Date: Fri, 3 Jan 2020 00:36:24 +0800 Subject: [PATCH 4/7] Update main.yml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ca8611d..20478ca 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,8 +30,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: - tag_name: ${{ github.sha }} - release_name: Release ${{ github.sha }} + tag_name: a + release_name: b body: | Changes in this Release - First Change From 61f135c0e862a07024b39e65f711e40dba23f6a7 Mon Sep 17 00:00:00 2001 From: niuniu Date: Fri, 3 Jan 2020 00:47:16 +0800 Subject: [PATCH 5/7] Update main.yml --- .github/workflows/main.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 20478ca..ca12530 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,10 +19,11 @@ jobs: - name: Check out source code uses: actions/checkout@master -# - name: Build -# env: -# ACCESS_TOKEN: ${{ secrets.GITHUB_ACTION_TOKEN }} -# run: git config --global url."https://beyond5959:${ACCESS_TOKEN}@github.com".insteadOf "https://github.com" && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ones-third-importer main.go + - name: Generate build number + id: buildnumber + uses: einaregilsson/build-number@v2 + with: + token: ${{secrets.GITHUB_TOKEN}} - name: Create Release id: create_release @@ -30,8 +31,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: - tag_name: a - release_name: b + tag_name: ${{ steps.buildnumber.outputs.build_number }} + release_name: ${{ steps.buildnumber.outputs.build_number }} body: | Changes in this Release - First Change From 76b9d51723a51f082b2c2ed42becd70d3b710db4 Mon Sep 17 00:00:00 2001 From: niuniu Date: Fri, 3 Jan 2020 01:00:05 +0800 Subject: [PATCH 6/7] Update main.yml --- .github/workflows/main.yml | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ca12530..58daafa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,28 +2,22 @@ name: Create Release on: push: - branches: - - master + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 jobs: build: name: Create Release runs-on: ubuntu-latest steps: -# - name: Set up Go 1.13 -# uses: actions/setup-go@v1 -# with: -# go-version: 1.13 -# id: go - - name: Check out source code uses: actions/checkout@master - - name: Generate build number - id: buildnumber - uses: einaregilsson/build-number@v2 - with: - token: ${{secrets.GITHUB_TOKEN}} +# - name: Generate build number +# id: buildnumber +# uses: einaregilsson/build-number@v2 +# with: +# token: ${{secrets.GITHUB_TOKEN}} - name: Create Release id: create_release @@ -31,8 +25,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: - tag_name: ${{ steps.buildnumber.outputs.build_number }} - release_name: ${{ steps.buildnumber.outputs.build_number }} + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} body: | Changes in this Release - First Change From e3e9dfba83eaa1bd2cfbc048611dd035c88148b3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 11 Dec 2020 03:55:03 +0000 Subject: [PATCH 7/7] Bump ini from 1.3.5 to 1.3.7 in /lib/three Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7. - [Release notes](https://github.com/isaacs/ini/releases) - [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7) Signed-off-by: dependabot[bot] --- lib/three/yarn.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/three/yarn.lock b/lib/three/yarn.lock index 56a2d71..d8e60f3 100644 --- a/lib/three/yarn.lock +++ b/lib/three/yarn.lock @@ -645,8 +645,8 @@ inherits@2, inherits@^2.0.1, inherits@~2.0.1, inherits@~2.0.3: resolved "http://registry.npm.taobao.org/inherits/download/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" ini@^1.3.4: - version "1.3.5" - resolved "http://registry.npm.taobao.org/ini/download/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" + version "1.3.7" + resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.7.tgz#a09363e1911972ea16d7a8851005d84cf09a9a84" interpret@^1.0.0: version "1.1.0"