Skip to content

Commit

Permalink
Merge pull request #160 from jesperancinha/automatic-updates
Browse files Browse the repository at this point in the history
Upgrades to Java 21
  • Loading branch information
jesperancinha authored Jun 25, 2024
2 parents a749f6a + 40c9da4 commit 30d6153
Show file tree
Hide file tree
Showing 13 changed files with 76 additions and 12 deletions.
Empty file modified .github/dependabot.yml
100755 → 100644
Empty file.
Empty file modified .github/workflows/good-story-cpp.yml
100755 → 100644
Empty file.
4 changes: 2 additions & 2 deletions .github/workflows/good-story-intro.yml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 19
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '19'
java-version: '21'
distribution: 'adopt'

- name: Java version check
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/good-story-java-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Updates java

on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:

jobs:
update-java:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Run dependency update script
run: make deps-java-update

- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
commit-message: Update java
branch: update-java
title: 'Update java'
body: |
This pull request updates the JDK:
- Current plugin updates
labels: JDK
4 changes: 2 additions & 2 deletions .github/workflows/good-story-java.yml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 19
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '19'
java-version: '21'
distribution: 'adopt'

- name: Java version check
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/good-story-kotlin-loom.yml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 19
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '19'
java-version: '21'
distribution: 'adopt'

- name: Java version check
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/good-story-kotlin.yml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 19
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '19'
java-version: '21'
distribution: 'adopt'

- name: Java version check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/good-story-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.1.1
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/good-story-plugins-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Updates plugins

on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:

jobs:
update-plugins:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Run dependency update script
run: make deps-plugins-update

- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
commit-message: Update plugins
branch: update-plugins
title: 'Update plugins'
body: |
This pull request updates the following dependencies:
- Current plugin updates
labels: dependencies
4 changes: 2 additions & 2 deletions .github/workflows/good-story-report-run.yml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 19
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '19'
java-version: '21'
distribution: 'adopt'

- name: Java version check
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,6 @@ system-info:
uname -mprsv
deps-plugins-update:
curl -sL https://raw.githubusercontent.com/jesperancinha/project-signer/master/pluginUpdatesOne.sh | bash
deps-java-update:
curl -sL https://raw.githubusercontent.com/jesperancinha/project-signer/master/javaUpdatesOne.sh | bash
deps-quick-update: deps-plugins-update deps-java-update
Empty file modified _config.yml
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<name>Good Story : Parent</name>

<properties>
<java.version>19</java.version>
<java.version>21</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<maven-compiler.release>${java.version}</maven-compiler.release>
Expand Down

0 comments on commit 30d6153

Please sign in to comment.