From 014727a78c5df0ba9676179f8eb068f376640bec Mon Sep 17 00:00:00 2001 From: Kentaro Ohkouchi Date: Mon, 31 Aug 2020 18:52:45 +0900 Subject: [PATCH 1/2] =?UTF-8?q?curl=20=E3=81=A7=E3=82=B3=E3=83=BC=E3=83=AB?= =?UTF-8?q?=E3=81=97=E3=81=A6=E3=81=BF=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/weekly-build.yml | 33 ++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/.github/workflows/weekly-build.yml b/.github/workflows/weekly-build.yml index 7fb753b38e..3e3b073bb5 100644 --- a/.github/workflows/weekly-build.yml +++ b/.github/workflows/weekly-build.yml @@ -13,16 +13,27 @@ jobs: uses: actions/checkout@v2 - run: echo "::set-env name=REL_DATE::$(date +%Y%m%d%H%M%S)" - 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: weekly/${{ env.REL_DATE }} - release_name: EC-CUBE2 Weekly build ${{ env.REL_DATE }} - body: | - EC-CUBE 2.17็ณปใฎ Weekly build๐Ÿš€ ใงใ™ใ€‚ๆฏŽ้€ฑใฎๆ”นๅ–„ๅ†…ๅฎนใ‚’ๅๆ˜ ใ—ใฆใŠใ‚Šใพใ™ใ€‚ - ๅธธใซๅฎ‰ๅฎšใ—ใฆๅ‹•ไฝœใ™ใ‚‹ใ‚ˆใ†ๅŠชใ‚ใฆใ„ใพใ™ใŒใ€ๆ€ใ‚ใฌไธๅ…ทๅˆใ‚’ๅ–ใ‚Š่พผใ‚“ใงใ—ใพใฃใฆใ„ใ‚‹ๅ ดๅˆใ‚‚ใ‚ใ‚Šใพใ™ใ€‚ๅๅˆ†ใซๆคœ่จผใฎไธŠใ”ๅˆฉ็”จใใ ใ•ใ„ใ€‚ + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: curl -v -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/repos/nanasess/ec-cube2/releases --data ' +{ + "tag_name": "eccube2-weekly-'${REL_DATE}'", + "target_commitish": "master", + "name": "weekly/'${REL_DATE}'", + "body": "EC-CUBE 2.17็ณปใฎ Weekly build๐Ÿš€ ใงใ™ใ€‚ๆฏŽ้€ฑใฎๆ”นๅ–„ๅ†…ๅฎนใ‚’ๅๆ˜ ใ—ใฆใŠใ‚Šใพใ™ใ€‚\nๅธธใซๅฎ‰ๅฎšใ—ใฆๅ‹•ไฝœใ™ใ‚‹ใ‚ˆใ†ๅŠชใ‚ใฆใ„ใพใ™ใŒใ€ๆ€ใ‚ใฌไธๅ…ทๅˆใ‚’ๅ–ใ‚Š่พผใ‚“ใงใ—ใพใฃใฆใ„ใ‚‹ๅ ดๅˆใ‚‚ใ‚ใ‚Šใพใ™ใ€‚ๅๅˆ†ใซๆคœ่จผใฎไธŠใ”ๅˆฉ็”จใใ ใ•ใ„ใ€‚", + "draft": false, + "prerelease": false +}' + # 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: weekly/${{ env.REL_DATE }} + # release_name: EC-CUBE2 Weekly build ${{ env.REL_DATE }} + # body: | + # EC-CUBE 2.17็ณปใฎ Weekly build๐Ÿš€ ใงใ™ใ€‚ๆฏŽ้€ฑใฎๆ”นๅ–„ๅ†…ๅฎนใ‚’ๅๆ˜ ใ—ใฆใŠใ‚Šใพใ™ใ€‚ + # ๅธธใซๅฎ‰ๅฎšใ—ใฆๅ‹•ไฝœใ™ใ‚‹ใ‚ˆใ†ๅŠชใ‚ใฆใ„ใพใ™ใŒใ€ๆ€ใ‚ใฌไธๅ…ทๅˆใ‚’ๅ–ใ‚Š่พผใ‚“ใงใ—ใพใฃใฆใ„ใ‚‹ๅ ดๅˆใ‚‚ใ‚ใ‚Šใพใ™ใ€‚ๅๅˆ†ใซๆคœ่จผใฎไธŠใ”ๅˆฉ็”จใใ ใ•ใ„ใ€‚ - draft: false - prerelease: true + # draft: false + # prerelease: true From 80087bb1edc9fea11fc221a3eefb08c83fb4cabe Mon Sep 17 00:00:00 2001 From: Kentaro Ohkouchi Date: Mon, 31 Aug 2020 19:04:11 +0900 Subject: [PATCH 2/2] escape --- .github/workflows/weekly-build.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/weekly-build.yml b/.github/workflows/weekly-build.yml index 3e3b073bb5..deff6ec9d7 100644 --- a/.github/workflows/weekly-build.yml +++ b/.github/workflows/weekly-build.yml @@ -15,15 +15,14 @@ jobs: - name: Create Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: curl -v -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/repos/nanasess/ec-cube2/releases --data ' -{ - "tag_name": "eccube2-weekly-'${REL_DATE}'", - "target_commitish": "master", - "name": "weekly/'${REL_DATE}'", - "body": "EC-CUBE 2.17็ณปใฎ Weekly build๐Ÿš€ ใงใ™ใ€‚ๆฏŽ้€ฑใฎๆ”นๅ–„ๅ†…ๅฎนใ‚’ๅๆ˜ ใ—ใฆใŠใ‚Šใพใ™ใ€‚\nๅธธใซๅฎ‰ๅฎšใ—ใฆๅ‹•ไฝœใ™ใ‚‹ใ‚ˆใ†ๅŠชใ‚ใฆใ„ใพใ™ใŒใ€ๆ€ใ‚ใฌไธๅ…ทๅˆใ‚’ๅ–ใ‚Š่พผใ‚“ใงใ—ใพใฃใฆใ„ใ‚‹ๅ ดๅˆใ‚‚ใ‚ใ‚Šใพใ™ใ€‚ๅๅˆ†ใซๆคœ่จผใฎไธŠใ”ๅˆฉ็”จใใ ใ•ใ„ใ€‚", - "draft": false, - "prerelease": false -}' + run: | + curl -v -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/repos/nanasess/ec-cube2/releases \ + --data "{ \"tag_name\": \"eccube2-weekly-${REL_DATE}\", \ + \"target_commitish\": \"master\", \ + \"name"\: \"weekly/${REL_DATE}\", \ + \"body\": \"EC-CUBE 2.17็ณปใฎ Weekly build๐Ÿš€ ใงใ™ใ€‚ๆฏŽ้€ฑใฎๆ”นๅ–„ๅ†…ๅฎนใ‚’ๅๆ˜ ใ—ใฆใŠใ‚Šใพใ™ใ€‚\nๅธธใซๅฎ‰ๅฎšใ—ใฆๅ‹•ไฝœใ™ใ‚‹ใ‚ˆใ†ๅŠชใ‚ใฆใ„ใพใ™ใŒใ€ๆ€ใ‚ใฌไธๅ…ทๅˆใ‚’ๅ–ใ‚Š่พผใ‚“ใงใ—ใพใฃใฆใ„ใ‚‹ๅ ดๅˆใ‚‚ใ‚ใ‚Šใพใ™ใ€‚ๅๅˆ†ใซๆคœ่จผใฎไธŠใ”ๅˆฉ็”จใใ ใ•ใ„ใ€‚\", \ + \"draft\": false, \ + \"prerelease\": false }" # id: create_release # uses: actions/create-release@v1 # env: