4747
4848 # Validate wrapper
4949 - name : Gradle Wrapper Validation
50- 50+ 5151
5252 # Setup Java 11 environment for the next steps
5353 - name : Setup Java
@@ -65,18 +65,18 @@ jobs:
6565 VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')"
6666 NAME="$(echo "$PROPERTIES" | grep "^pluginName:" | cut -f2- -d ' ')"
6767 CHANGELOG="$(./gradlew getChangelog --unreleased --no-header --console=plain -q)"
68- CHANGELOG="${CHANGELOG//'%'/'%25'}"
69- CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
70- CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
71- echo "::set-output name=version::$VERSION"
72- echo "::set-output name=name::$NAME"
73- echo "::set-output name=changelog:: $CHANGELOG"
74- echo "::set-output name=pluginVerifierHomeDir::~/.pluginVerifier"
68+ echo "version=$VERSION" >> $GITHUB_OUTPUT
69+ echo "name=$NAME" >> $GITHUB_OUTPUT
70+ echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT
71+
72+ echo "changelog<<EOF" >> $GITHUB_OUTPUT
73+ echo "$CHANGELOG" >> $GITHUB_OUTPUT
74+ echo "EOF" >> $GITHUB_OUTPUT
7575 ./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier
7676
7777 # Run tests
7878 - name : Run Tests
79- run : ./gradlew test
79+ run : ./gradlew check
8080
8181 # Collect Tests Result of failed tests
8282 - name : Collect Tests Result
@@ -113,7 +113,7 @@ jobs:
113113 cd ${{ github.workspace }}/build/distributions
114114 FILENAME=`ls *.zip`
115115 unzip "$FILENAME" -d content
116- echo "::set-output name= filename:: ${FILENAME:0:-4}"
116+ echo "filename= ${FILENAME:0:-4}" >> $GITHUB_OUTPUT
117117 # Store already-built plugin as an artifact for downloading
118118 - name : Upload artifact
119119 uses : actions/upload-artifact@v3
@@ -136,15 +136,15 @@ jobs:
136136 - name : Fetch Sources
137137 uses : actions/checkout@v3
138138
139- # Remove old release drafts by using the curl request for the available releases with draft flag
139+ # Remove old release drafts by using the curl request for the available releases with a draft flag
140140 - name : Remove Old Release Drafts
141141 env :
142142 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
143143 run : |
144144 gh api repos/{owner}/{repo}/releases \
145145 --jq '.[] | select(.draft == true) | .id' \
146146 | xargs -I '{}' gh api -X DELETE repos/{owner}/{repo}/releases/{}
147- # Create new release draft - which is not publicly visible and requires manual acceptance
147+ # Create a new release draft which is not publicly visible and requires manual acceptance
148148 - name : Create Release Draft
149149 env :
150150 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments