File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 68
68
sudo update-rc.d xvfb defaults
69
69
sudo service xvfb start
70
70
- name : Get leeway cache version
71
+ env :
72
+ TEST_USE_LATEST : ${{ inputs.use_latest }}
71
73
run : |
72
- leeway collect | grep components/ide/jetbrains/gateway-plugin:publish-latest > gateway.version
74
+ if [ $TEST_USE_LATEST = "false" ]; then
75
+ leeway collect | grep components/ide/jetbrains/gateway-plugin:publish-stable > gateway.version
76
+ else
77
+ leeway collect | grep components/ide/jetbrains/gateway-plugin:publish-latest > gateway.version
78
+ fi
73
79
- name : Cache leeway build
74
80
id : cache-npm
75
81
uses : actions/cache@v3
Original file line number Diff line number Diff line change @@ -56,13 +56,16 @@ jobs:
56
56
echo "MINOR: $MINOR"
57
57
LATEST_VERSION="$MAJOR.$MINOR-EAP-CANDIDATE-SNAPSHOT"
58
58
echo "Latest platform version: $LATEST_VERSION"
59
- echo "::set-output name=result::$LATEST_VERSION"
59
+
60
+ echo "::set-output name=sinceBuild::$MAJOR.$MINOR"
61
+ echo "::set-output name=untilBuild::$MAJOR.*"
60
62
echo "::set-output name=majorVersion::$MAJOR_VERSION"
63
+ echo "::set-output name=result::$LATEST_VERSION"
61
64
- name : Update ${{ inputs.gradlePropertiesPath }}
62
65
if : ${{ steps.latest-version.outputs.result != steps.current-version.outputs.result }}
63
66
run : |
64
- PLUGIN_SINCE_BUILD=$(echo " ${{ steps.latest-version.outputs.result }}" | sed 's/-EAP-CANDIDATE-SNAPSHOT//' | sed 's/-CUSTOM-SNAPSHOT//')
65
- sed -i "s/pluginSinceBuild =.*/pluginSinceBuild=$PLUGIN_SINCE_BUILD /" ${{ inputs.gradlePropertiesPath }}
67
+ sed -i "s/pluginSinceBuild=.*/pluginSinceBuild= ${{ steps.latest-version.outputs.sinceBuild }}/" ${{ inputs.gradlePropertiesPath }}
68
+ sed -i "s/pluginUntilBuild =.*/pluginUntilBuild=${{ steps.latest-version.outputs.untilBuild }} /" ${{ inputs.gradlePropertiesPath }}
66
69
sed -i "s/pluginVerifierIdeVersions=.*/pluginVerifierIdeVersions=${{ steps.latest-version.outputs.majorVersion }}/" ${{ inputs.gradlePropertiesPath }}
67
70
sed -i 's/platformVersion=${{ steps.current-version.outputs.result }}/platformVersion=${{ steps.latest-version.outputs.result }}/' ${{ inputs.gradlePropertiesPath }}
68
71
git diff
You can’t perform that action at this time.
0 commit comments