File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,10 @@ jobs:
16
16
uses : actions/checkout@v3
17
17
18
18
- name : Get release info
19
- id : get_release_info
20
19
run : |
21
20
APP_VERSION=$(sed -n "s/<version>\(.*\)<\/version>/\\1/p" ./appinfo/info.xml | tr -d '\t')
22
21
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
25
23
CHANGELOG=$(grep -oPz "(?s)##\s\[$APP_VERSION\s.+?(?=##\s\[|$)" ./CHANGELOG.md | tr -d '\0' | sed /^$/d | sed '1d')
26
24
CHANGELOG=$(echo "$CHANGELOG" | sed '$!N;s/^###.*\n#/#/;P;D' | sed '$!N;s/^###.*\n#/#/;P;D' | sed '${/^###/d;}')
27
25
if [ "$CHANGELOG" == "" ]; then
97
95
- name : Create release draft
98
96
uses : ncipollo/release-action@v1.12.0
99
97
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 }}
102
100
prerelease : ${{ env.IS_NIGHTLY }}
103
101
commit : ${{ github.ref }}
104
102
draft : true
Original file line number Diff line number Diff line change @@ -14,13 +14,11 @@ jobs:
14
14
uses : actions/checkout@v3
15
15
16
16
- name : Get release url
17
- id : release_url
18
17
run : |
19
18
APP_VERSION=$(sed -n "s/<version>\(.*\)<\/version>/\\1/p" ./appinfo/info.xml | tr -d '\t')
20
19
IS_NIGHTLY=$(if [[ $APP_VERSION == *"beta"* ]]; then echo "true"; else echo "false"; fi)
21
20
REP_NAME=${{github.repository_owner}}
22
21
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}"
24
22
curl -f --output app.tar.gz -L $RELEASE_URL
25
23
echo "RELEASE_URL=$RELEASE_URL" >> $GITHUB_ENV
26
24
echo "IS_NIGHTLY=$IS_NIGHTLY" >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments