File tree 3 files changed +105
-1
lines changed
3 files changed +105
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Java CI
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ - $default-branch
8
+ - $protected-branches
9
+ pull_request :
10
+ branches :
11
+ - master
12
+ - $default-branch
13
+ workflow_dispatch :
14
+
15
+ permissions :
16
+ id-token : write
17
+ attestations : write
18
+ contents : write
19
+ packages : write
20
+ checks : write
21
+
22
+ jobs :
23
+ check-release-needed :
24
+ runs-on : ubuntu-latest
25
+ outputs :
26
+ release_needed : ${{ steps.create_release_needed.outputs.release_needed }}
27
+ steps :
28
+ - name : Checkout
29
+ uses : actions/checkout@v4
30
+ with :
31
+ fetch-depth : ${{ (github.repository == 'JOSM/changeset-viewer' && github.ref_type == 'branch' && github.ref_name == 'master' && github.event_name != 'schedule' && github.event_name != 'pull_request') && '0' || '1' }}
32
+
33
+ - name : Set release needed
34
+ id : create_release_needed
35
+ run : |
36
+ last_tag=$(git describe --tags --abbrev=0 --always)
37
+ release_needed="false"
38
+ for file in $(git diff ${last_tag}..HEAD --name-only); do
39
+ if [[ $file = "src/"* ]] || [[ $file = "data/*" ]] || [[ $file = "lib/*" ]] || [[ $file = "resources/*" ]] || [[ $file = "images/*" ]]; then
40
+ release_needed="true"
41
+ break
42
+ fi
43
+ done
44
+ echo "release_needed=$release_needed" >> $GITHUB_OUTPUT
45
+
46
+ call-workflow :
47
+ needs : check-release-needed
48
+ strategy :
49
+ matrix :
50
+ josm-revision : ["", "r19044"]
51
+ uses : JOSM/JOSMPluginAction/.github/workflows/ant.yml@v3
52
+ with :
53
+ josm-revision : ${{ matrix.josm-revision }}
54
+ perform-revision-tagging : ${{ github.repository == 'JOSM/changeset-viewer' && github.ref_type == 'branch' && github.ref_name == 'master' && github.event_name != 'schedule' && github.event_name != 'pull_request' && matrix.josm-revision == 'r19044' }}
55
+ secrets : inherit
56
+ permissions :
57
+ attestations : write
58
+ checks : write
59
+ contents : write
60
+ deployments : write
61
+ id-token : write
Original file line number Diff line number Diff line change 2
2
<project name =" changeset-viewer" default =" dist" basedir =" ." >
3
3
<property name =" commit.message" value =" changeset-viewer plugin" />
4
4
<property name =" plugin.main.version" value =" 19044" />
5
- <property name =" plugin.version" value =" 0.0.8" />
6
5
<property name =" plugin.author" value =" Rub21" />
7
6
<property name =" plugin.class" value =" org.openstreetmap.josm.plugins.changeset.ChangesetViewerPlugin" />
8
7
<property name =" plugin.description" value =" Changeset Viewer plugin allows you to visualize the changesets in JOSM background" />
Original file line number Diff line number Diff line change
1
+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2
+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
3
+ <modelVersion >4.0.0</modelVersion >
4
+ <parent >
5
+ <groupId >org.openstreetmap.josm.plugins</groupId >
6
+ <artifactId >plugin-root</artifactId >
7
+ <version >SNAPSHOT</version >
8
+ </parent >
9
+ <artifactId >changeset-viewer</artifactId >
10
+
11
+ <url >${plugin.link} </url >
12
+ <developers >
13
+ <developer >
14
+ <id >Rub21</id >
15
+ </developer >
16
+ </developers >
17
+ <properties >
18
+ <plugin .src.dir>src</plugin .src.dir>
19
+ <plugin .main.version>19044</plugin .main.version>
20
+ <plugin .author>Rub21</plugin .author>
21
+ <plugin .class>org.openstreetmap.josm.plugins.changeset.ChangesetViewerPlugin</plugin .class>
22
+ <plugin .description>Changeset Viewer plugin allows you to visualize the changesets in JOSM background</plugin .description>
23
+ <plugin .icon>images/changeset-viewer.png</plugin .icon>
24
+ <plugin .link>https://github.com/JOSM/changeset-viewer</plugin .link>
25
+ <plugin .canloadatruntime>true</plugin .canloadatruntime>
26
+ </properties >
27
+ <build >
28
+ <plugins >
29
+ <plugin >
30
+ <groupId >org.apache.maven.plugins</groupId >
31
+ <artifactId >maven-jar-plugin</artifactId >
32
+ <configuration >
33
+ <archive >
34
+ <manifestEntries >
35
+ <Plugin-Link >${plugin.link} </Plugin-Link >
36
+ <Plugin-Icon >${plugin.icon} </Plugin-Icon >
37
+ <Plugin-Canloadatruntime >${plugin.canloadatruntime} </Plugin-Canloadatruntime >
38
+ </manifestEntries >
39
+ </archive >
40
+ </configuration >
41
+ </plugin >
42
+ </plugins >
43
+ </build >
44
+ </project >
You can’t perform that action at this time.
0 commit comments