Skip to content

Commit 3f051b6

Browse files
committed
Auto bump version if Spotify Web API has changed
1 parent a224c37 commit 3f051b6

File tree

7 files changed

+17
-12
lines changed

7 files changed

+17
-12
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,10 @@ jobs:
3232
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3333
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
3434
OSSRH_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_PASSPHRASE }}
35-
run: mvn -B deploy -Pdeploy
35+
run: ./mvnw -B deploy -Pdeploy
3636
- name: Create release on GitHub
3737
uses: softprops/action-gh-release@v1
3838
if: startsWith(github.ref, 'refs/tags/')
39-
4039
env:
4140
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4241
with:

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>de.sonallux.spotify</groupId>
88
<artifactId>spotify-web-api-parent</artifactId>
9-
<version>2021.4.14</version>
9+
<version>2021.4.19</version>
1010
<packaging>pom</packaging>
1111

1212
<name>spotify-web-api-parent</name>

scripts/parse-web-api.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,10 @@ then
2323
exit $generationExitCode
2424
fi
2525

26+
git diff --exit-code
27+
if [ "$?" != "0" ]
28+
then
29+
./mvnw versions:set -DnewVersion="$(date +"%Y.%-m.%-d")" -DgenerateBackupPoms=false
30+
fi
31+
2632
exit 0

spotify-web-api-core/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
<parent>
88
<groupId>de.sonallux.spotify</groupId>
99
<artifactId>spotify-web-api-parent</artifactId>
10-
<version>2021.4.14</version>
10+
<version>2021.4.19</version>
1111
<relativePath>../pom.xml</relativePath>
1212
</parent>
1313

1414
<artifactId>spotify-web-api-core</artifactId>
15-
<version>2021.4.14</version>
15+
<version>2021.4.19</version>
1616
<packaging>jar</packaging>
1717

1818
<name>spotify-web-api-core</name>

spotify-web-api-generator-open-api/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
<parent>
88
<groupId>de.sonallux.spotify</groupId>
99
<artifactId>spotify-web-api-parent</artifactId>
10-
<version>2021.4.14</version>
10+
<version>2021.4.19</version>
1111
<relativePath>../pom.xml</relativePath>
1212
</parent>
1313

1414
<artifactId>spotify-web-api-generator-open-api</artifactId>
15-
<version>2021.4.14</version>
15+
<version>2021.4.19</version>
1616
<packaging>jar</packaging>
1717

1818
<name>spotify-web-api-generator-open-api</name>
@@ -29,7 +29,7 @@
2929
<dependency>
3030
<groupId>de.sonallux.spotify</groupId>
3131
<artifactId>spotify-web-api-core</artifactId>
32-
<version>2021.4.14</version>
32+
<version>2021.4.19</version>
3333
</dependency>
3434
<dependency>
3535
<groupId>io.swagger.core.v3</groupId>

spotify-web-api-generator-open-api/spotify-web-api-openapi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ info:
44
contact:
55
name: sonallux
66
url: https://github.com/sonallux/spotify-web-api
7-
version: 2021.4.14
7+
version: 2021.4.19
88
externalDocs:
99
description: Find more info on the official Spotify Web API Reference
1010
url: https://developer.spotify.com/documentation/web-api/reference

spotify-web-api-parser/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
<parent>
88
<groupId>de.sonallux.spotify</groupId>
99
<artifactId>spotify-web-api-parent</artifactId>
10-
<version>2021.4.14</version>
10+
<version>2021.4.19</version>
1111
<relativePath>../pom.xml</relativePath>
1212
</parent>
1313

1414
<artifactId>spotify-web-api-parser</artifactId>
15-
<version>2021.4.14</version>
15+
<version>2021.4.19</version>
1616
<packaging>jar</packaging>
1717

1818
<name>spotify-web-api-parser</name>
@@ -27,7 +27,7 @@
2727
<dependency>
2828
<groupId>de.sonallux.spotify</groupId>
2929
<artifactId>spotify-web-api-core</artifactId>
30-
<version>2021.4.14</version>
30+
<version>2021.4.19</version>
3131
</dependency>
3232
<dependency>
3333
<groupId>org.jsoup</groupId>

0 commit comments

Comments
 (0)