Skip to content

Commit 709da14

Browse files
add git config to identify author (#524)
1 parent a1a45a6 commit 709da14

File tree

7 files changed

+32
-5
lines changed

7 files changed

+32
-5
lines changed

.github/scripts/release.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
# Exit immediately if any command in the script fails
44
set -e
55

6+
# Add git user
7+
git config user.email "[email protected]"
8+
git config user.name "Gluon Bot"
9+
610
echo "Update samples"
711
sh $GITHUB_WORKSPACE/.github/scripts/update-samples.sh
812

.github/scripts/update-archetypes.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env bash
22

3+
# Exit immediately if any command in the script fails
4+
set -e
5+
36
ARCHETYPE_REPO_SLUG=gluonhq/gluonfx-maven-archetypes
47
XML_LOCATION=src/main/resources/META-INF/maven/archetype-metadata.xml
58

.github/scripts/update-docs.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env bash
22

3+
# Exit immediately if any command in the script fails
4+
set -e
5+
36
DOCS_REPO_SLUG=gluonhq/docs
47

58
cd /tmp
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
#!/usr/bin/env bash
2+
3+
# Exit immediately if any command in the script fails
4+
set -e
5+
16
HELLO_REPO_SLUG=gluonhq/hello-gluon-ci
27

38
cd /tmp
49
git clone https://github.com/$HELLO_REPO_SLUG
510
cd hello-gluon-ci
611

712
# 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
914

1015
git commit pom.xml -m "Update gluonfx-maven-plugin version to $TAG"
1116
git push https://gluon-bot:$GITHUB_PASSWORD@github.com/$HELLO_REPO_SLUG HEAD:master

.github/scripts/update-ide-properties.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
# Exit immediately if any command in the script fails
4+
set -e
5+
16
# Update settings property file
27
aws s3 cp s3://download.gluonhq.com/ideplugins/settings-2.10.4.properties /tmp --region us-east-1 --debug
38
sed -i "s/gluonfxMavenPlugin=.*/gluonfxMavenPlugin=$TAG/g" /tmp/settings-2.10.4.properties

.github/scripts/update-samples.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
#!/usr/bin/env bash
2+
3+
# Exit immediately if any command in the script fails
4+
set -e
5+
16
SAMPLES_REPO_SLUG=gluonhq/gluon-samples
27

38
cd /tmp
49
git clone https://github.com/$SAMPLES_REPO_SLUG
510
cd gluon-samples
611

712
# 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
914

1015
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

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,16 @@ jobs:
5151
persist-credentials: false
5252
- name: Commit next development version
5353
run: |
54+
git config user.email "[email protected]"
55+
git config user.name "Gluon Bot"
5456
TAG=${GITHUB_REF/refs\/tags\//}
5557
SUBSTRATE_VERSION=$(mvn help:evaluate -Dexpression=substrate.version -q -DforceStdout)
5658
NEW_SUBSTRATE_VERSION=${SUBSTRATE_VERSION%.*}.$((${SUBSTRATE_VERSION##*.} + 1))
5759
NEW_PROJECT_VERSION=${TAG%.*}.$((${TAG##*.} + 1))
5860
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
6062
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
6264
git commit pom.xml -m "Prepare development of $NEW_PROJECT_VERSION"
6365
git push https://gluon-bot:[email protected]/$GITHUB_REPOSITORY HEAD:master
6466
shell: bash

0 commit comments

Comments
 (0)