File tree Expand file tree Collapse file tree 7 files changed +32
-5
lines changed Expand file tree Collapse file tree 7 files changed +32
-5
lines changed Original file line number Diff line number Diff line change 3
3
# Exit immediately if any command in the script fails
4
4
set -e
5
5
6
+ # Add git user
7
+ git config user.email
" [email protected] "
8
+ git config user.name " Gluon Bot"
9
+
6
10
echo " Update samples"
7
11
sh $GITHUB_WORKSPACE /.github/scripts/update-samples.sh
8
12
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ # Exit immediately if any command in the script fails
4
+ set -e
5
+
3
6
ARCHETYPE_REPO_SLUG=gluonhq/gluonfx-maven-archetypes
4
7
XML_LOCATION=src/main/resources/META-INF/maven/archetype-metadata.xml
5
8
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ # Exit immediately if any command in the script fails
4
+ set -e
5
+
3
6
DOCS_REPO_SLUG=gluonhq/docs
4
7
5
8
cd /tmp
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # Exit immediately if any command in the script fails
4
+ set -e
5
+
1
6
HELLO_REPO_SLUG=gluonhq/hello-gluon-ci
2
7
3
8
cd /tmp
4
9
git clone https://github.com/$HELLO_REPO_SLUG
5
10
cd hello-gluon-ci
6
11
7
12
# Update plugin version
8
- mvn versions:set-property -Dproperty=gluonfx.maven.plugin.version -DnewVersion=" $TAG " -DgenerateBackupPoms=false
13
+ mvn -ntp versions:set-property -Dproperty=gluonfx.maven.plugin.version -DnewVersion=" $TAG " -DgenerateBackupPoms=false
9
14
10
15
git commit pom.xml -m " Update gluonfx-maven-plugin version to $TAG "
11
16
git push https://gluon-bot:$GITHUB_PASSWORD @github.com/$HELLO_REPO_SLUG HEAD:master
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # Exit immediately if any command in the script fails
4
+ set -e
5
+
1
6
# Update settings property file
2
7
aws s3 cp s3://download.gluonhq.com/ideplugins/settings-2.10.4.properties /tmp --region us-east-1 --debug
3
8
sed -i " s/gluonfxMavenPlugin=.*/gluonfxMavenPlugin=$TAG /g" /tmp/settings-2.10.4.properties
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # Exit immediately if any command in the script fails
4
+ set -e
5
+
1
6
SAMPLES_REPO_SLUG=gluonhq/gluon-samples
2
7
3
8
cd /tmp
4
9
git clone https://github.com/$SAMPLES_REPO_SLUG
5
10
cd gluon-samples
6
11
7
12
# Update plugin version
8
- mvn versions:set-property -Dproperty=gluonfx.maven.plugin.version -DnewVersion=" $TAG " -DgenerateBackupPoms=false
13
+ mvn -ntp versions:set-property -Dproperty=gluonfx.maven.plugin.version -DnewVersion=" $TAG " -DgenerateBackupPoms=false
9
14
10
15
git commit pom.xml -m " Update gluonfx-maven-plugin version to $TAG "
11
- git push https://gluon-bot:$GITHUB_PASSWORD @github.com/$SAMPLES_REPO_SLUG HEAD:master
16
+ git push https://gluon-bot:$GITHUB_PASSWORD @github.com/$SAMPLES_REPO_SLUG HEAD:master
Original file line number Diff line number Diff line change @@ -51,14 +51,16 @@ jobs:
51
51
persist-credentials : false
52
52
- name : Commit next development version
53
53
run : |
54
+ git config user.email "[email protected] "
55
+ git config user.name "Gluon Bot"
54
56
TAG=${GITHUB_REF/refs\/tags\//}
55
57
SUBSTRATE_VERSION=$(mvn help:evaluate -Dexpression=substrate.version -q -DforceStdout)
56
58
NEW_SUBSTRATE_VERSION=${SUBSTRATE_VERSION%.*}.$((${SUBSTRATE_VERSION##*.} + 1))
57
59
NEW_PROJECT_VERSION=${TAG%.*}.$((${TAG##*.} + 1))
58
60
echo "Update project version to next snapshot version"
59
- mvn versions:set -DnewVersion=$NEW_PROJECT_VERSION-SNAPSHOT -DgenerateBackupPoms=false
61
+ mvn -ntp versions:set -DnewVersion=$NEW_PROJECT_VERSION-SNAPSHOT -DgenerateBackupPoms=false
60
62
echo "Update Substrate to next snapshot version"
61
- mvn versions:set-property -Dproperty=substrate.version -DnewVersion=$NEW_SUBSTRATE_VERSION-SNAPSHOT -DgenerateBackupPoms=false
63
+ mvn -ntp versions:set-property -Dproperty=substrate.version -DnewVersion=$NEW_SUBSTRATE_VERSION-SNAPSHOT -DgenerateBackupPoms=false
62
64
git commit pom.xml -m "Prepare development of $NEW_PROJECT_VERSION"
63
65
git push https://gluon-bot:[email protected] /$GITHUB_REPOSITORY HEAD:master
64
66
shell : bash
You can’t perform that action at this time.
0 commit comments