Commit e7d8b49 1 parent 78e34b5 commit e7d8b49 Copy full SHA for e7d8b49
File tree 1 file changed +2
-9
lines changed
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 16
16
environment : release
17
17
permissions :
18
18
contents : write
19
- packages : write
20
- outputs :
21
- presto_version : ${{ steps.get-version.outputs.PRESTO_RELEASE_VERSION }}
22
19
23
20
steps :
24
21
- name : Check for master branch
55
52
PRESTO_RELEASE_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate \
56
53
-Dexpression=project.version -q -ntp -DforceStdout | tail -n 1)
57
54
echo "PRESTO_RELEASE_VERSION=$PRESTO_RELEASE_VERSION"
58
- echo "PRESTO_RELEASE_VERSION=$PRESTO_RELEASE_VERSION" >> $GITHUB_OUTPUT
55
+ echo "PRESTO_RELEASE_VERSION=$PRESTO_RELEASE_VERSION" >> $GITHUB_ENV
59
56
60
57
- name : Update version in master
61
- env :
62
- PRESTO_RELEASE_VERSION : ${{ steps.get-version.outputs.PRESTO_RELEASE_VERSION }}
63
58
run : |
64
59
git reset --hard
65
60
unset MAVEN_CONFIG && ./mvnw release:prepare --batch-mode \
72
67
git push --follow-tags origin master
73
68
74
69
- name : Push release branch
75
- env :
76
- PRESTO_RELEASE_VERSION : ${{ steps.get-version.outputs.PRESTO_RELEASE_VERSION }}
77
70
run : |
78
71
git checkout ${{ env.PRESTO_RELEASE_VERSION }}
79
72
git switch -c release-${{ env.PRESTO_RELEASE_VERSION }}
84
77
needs : [cut-release]
85
78
if : ${{ always() && (needs.cut-release.result == 'success' || inputs.skip_release_cut) }}
86
79
runs-on : ubuntu-latest
80
+ environment : release
87
81
permissions :
88
82
contents : write
89
83
@@ -111,7 +105,6 @@ jobs:
111
105
git config --global user.name "prestodb-ci"
112
106
git config pull.rebase false
113
107
114
-
115
108
- name : Add git upstream
116
109
run : |
117
110
git remote add upstream ${{ github.server_url }}/${{ github.repository }}.git
You can’t perform that action at this time.
0 commit comments