File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,10 @@ jobs:
1616 uses : actions/checkout@v3
1717
1818 - name : Get release info
19- id : get_release_info
2019 run : |
2120 APP_VERSION=$(sed -n "s/<version>\(.*\)<\/version>/\\1/p" ./appinfo/info.xml | tr -d '\t')
2221 IS_NIGHTLY=$(if [[ $APP_VERSION == *"beta"* ]]; then echo "true"; else echo "false"; fi)
23- echo "::set-output name=version::v${APP_VERSION}"
24- echo "::set-output name=tag::v${APP_VERSION}"
22+ echo RELEASE_TAG="v$APP_VERSION" >> $GITHUB_ENV
2523 CHANGELOG=$(grep -oPz "(?s)##\s\[$APP_VERSION\s.+?(?=##\s\[|$)" ./CHANGELOG.md | tr -d '\0' | sed /^$/d | sed '1d')
2624 CHANGELOG=$(echo "$CHANGELOG" | sed '$!N;s/^###.*\n#/#/;P;D' | sed '$!N;s/^###.*\n#/#/;P;D' | sed '${/^###/d;}')
2725 if [ "$CHANGELOG" == "" ]; then
9795 - name : Create release draft
9896 uses : ncipollo/release-action@v1.12.0
9997 with :
100- name : ${{ steps.get_release_info.outputs.version }}
101- tag : ${{ steps.get_release_info.outputs.tag }}
98+ name : ${{ env.RELEASE_TAG }}
99+ tag : ${{ env.RELEASE_TAG }}
102100 prerelease : ${{ env.IS_NIGHTLY }}
103101 commit : ${{ github.ref }}
104102 draft : true
Original file line number Diff line number Diff line change @@ -14,13 +14,11 @@ jobs:
1414 uses : actions/checkout@v3
1515
1616 - name : Get release url
17- id : release_url
1817 run : |
1918 APP_VERSION=$(sed -n "s/<version>\(.*\)<\/version>/\\1/p" ./appinfo/info.xml | tr -d '\t')
2019 IS_NIGHTLY=$(if [[ $APP_VERSION == *"beta"* ]]; then echo "true"; else echo "false"; fi)
2120 REP_NAME=${{github.repository_owner}}
2221 RELEASE_URL=https://github.com/$REP_NAME/$APP_NAME/releases/download/v$APP_VERSION/$APP_NAME.tar.gz
23- echo "::set-output name=url::${RELEASE_URL}"
2422 curl -f --output app.tar.gz -L $RELEASE_URL
2523 echo "RELEASE_URL=$RELEASE_URL" >> $GITHUB_ENV
2624 echo "IS_NIGHTLY=$IS_NIGHTLY" >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments