Skip to content

Commit

Permalink
trigger maven updates only manually or on changes to the POM (#853)
Browse files Browse the repository at this point in the history
Mavenix was bumping the version of snapshot dependencies every time we
push to the frontend, which isn't very nice. Here we change it to only
trigger the workflow if the pom changes or if we need to manually
trigger it because something broke.

---------

Co-authored-by: rv-jenkins <[email protected]>
  • Loading branch information
Dwight Guth and rv-jenkins authored Oct 6, 2023
1 parent 11ced91 commit d64721e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: 'Update'
on:
workflow_dispatch:
pull_request:
paths: '**/pom.xml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
1 change: 0 additions & 1 deletion matching/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
<artifactId>mpfr_java</artifactId>
<version>1.4</version>
</dependency>

<dependency>
<groupId>org.kframework.mpfr_java</groupId>
<artifactId>mpfr_java</artifactId>
Expand Down
12 changes: 6 additions & 6 deletions nix/llvm-backend-matching.mavenix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -246,15 +246,15 @@
"sha1": "fdec6f2d2514787039928bcb781f9e67f4738899"
},
{
"path": "com/runtimeverification/k/kore/1.0-SNAPSHOT/kore-1.0-20231003.172436-30.jar",
"sha1": "8c3e43f073c3344e745919b0df8d3dbce36bef81"
"path": "com/runtimeverification/k/kore/1.0-SNAPSHOT/kore-1.0-20231005.004241-32.jar",
"sha1": "21f5fb629216038b2cc85810255ce5ef7e36c903"
},
{
"path": "com/runtimeverification/k/kore/1.0-SNAPSHOT/kore-1.0-20231003.172436-30.pom",
"path": "com/runtimeverification/k/kore/1.0-SNAPSHOT/kore-1.0-20231005.004241-32.pom",
"sha1": "2706d868319a03bc491350cb3a1af0927ef1a839"
},
{
"path": "com/runtimeverification/k/parent/1.0-SNAPSHOT/parent-1.0-20231003.172408-30.pom",
"path": "com/runtimeverification/k/parent/1.0-SNAPSHOT/parent-1.0-20231005.004219-32.pom",
"sha1": "62b92746f9104b7966075e98dc7b69c44475c72c"
},
{
Expand Down Expand Up @@ -5337,11 +5337,11 @@
"groupId": "com.runtimeverification.k",
"metas": [
{
"content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<metadata modelVersion=\"1.1.0\">\n <groupId>com.runtimeverification.k</groupId>\n <artifactId>kore</artifactId>\n <version>1.0-SNAPSHOT</version>\n <versioning>\n <snapshot>\n <timestamp>20231003.172436</timestamp>\n <buildNumber>30</buildNumber>\n </snapshot>\n <lastUpdated>20231003172436</lastUpdated>\n <snapshotVersions>\n <snapshotVersion>\n <extension>jar</extension>\n <value>1.0-20231003.172436-30</value>\n <updated>20231003172436</updated>\n </snapshotVersion>\n <snapshotVersion>\n <extension>pom</extension>\n <value>1.0-20231003.172436-30</value>\n <updated>20231003172436</updated>\n </snapshotVersion>\n </snapshotVersions>\n </versioning>\n</metadata>",
"content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<metadata modelVersion=\"1.1.0\">\n <groupId>com.runtimeverification.k</groupId>\n <artifactId>kore</artifactId>\n <version>1.0-SNAPSHOT</version>\n <versioning>\n <snapshot>\n <timestamp>20231005.004241</timestamp>\n <buildNumber>32</buildNumber>\n </snapshot>\n <lastUpdated>20231005004241</lastUpdated>\n <snapshotVersions>\n <snapshotVersion>\n <extension>jar</extension>\n <value>1.0-20231005.004241-32</value>\n <updated>20231005004241</updated>\n </snapshotVersion>\n <snapshotVersion>\n <extension>pom</extension>\n <value>1.0-20231005.004241-32</value>\n <updated>20231005004241</updated>\n </snapshotVersion>\n </snapshotVersions>\n </versioning>\n</metadata>",
"path": "com/runtimeverification/k/kore/1.0-SNAPSHOT"
},
{
"content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<metadata modelVersion=\"1.1.0\">\n <groupId>com.runtimeverification.k</groupId>\n <artifactId>parent</artifactId>\n <version>1.0-SNAPSHOT</version>\n <versioning>\n <snapshot>\n <timestamp>20231003.172408</timestamp>\n <buildNumber>30</buildNumber>\n </snapshot>\n <lastUpdated>20231003172408</lastUpdated>\n <snapshotVersions>\n <snapshotVersion>\n <extension>pom</extension>\n <value>1.0-20231003.172408-30</value>\n <updated>20231003172408</updated>\n </snapshotVersion>\n </snapshotVersions>\n </versioning>\n</metadata>",
"content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<metadata modelVersion=\"1.1.0\">\n <groupId>com.runtimeverification.k</groupId>\n <artifactId>parent</artifactId>\n <version>1.0-SNAPSHOT</version>\n <versioning>\n <snapshot>\n <timestamp>20231005.004219</timestamp>\n <buildNumber>32</buildNumber>\n </snapshot>\n <lastUpdated>20231005004219</lastUpdated>\n <snapshotVersions>\n <snapshotVersion>\n <extension>pom</extension>\n <value>1.0-20231005.004219-32</value>\n <updated>20231005004219</updated>\n </snapshotVersion>\n </snapshotVersions>\n </versioning>\n</metadata>",
"path": "com/runtimeverification/k/parent/1.0-SNAPSHOT"
}
],
Expand Down

0 comments on commit d64721e

Please sign in to comment.