From 116e8d51db226594a2b045591288d03cb50d8ab9 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 2 Jun 2026 15:25:51 +0900 Subject: [PATCH] Run apt-get update before installing JDK in JRuby release job The JRuby publish job started failing with a 404 because the runner's cached apt index pointed to an openjdk-21 version that had already been superseded in the mirror. Refresh the package lists before installing default-jdk and maven so apt resolves the currently available version. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/push_gem.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index 78a36cc9..30835223 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -41,7 +41,8 @@ jobs: # https://github.com/rubygems/rubygems/issues/5882 - name: Install dependencies and build for JRuby run: | - sudo apt install default-jdk maven + sudo apt-get update + sudo apt-get install -y default-jdk maven gem update --system gem install ruby-maven rake-compiler --no-document rake compile