Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/bump-cache-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
cache_version:
description: "New @useblacksmith/cache version"
description: 'New @useblacksmith/cache version'
required: true
type: string

Expand All @@ -26,7 +26,7 @@ jobs:
branch_name="bump-cache-version-${{ github.event.inputs.cache_version }}-$timestamp"
git checkout -b $branch_name
echo "branch_name=$branch_name" >> $GITHUB_OUTPUT

- name: Update package.json
run: |
sed -i 's/"@actions\/cache": "npm:@useblacksmith\/cache@[^"]*"/"@actions\/cache": "npm:@useblacksmith\/cache@${{ github.event.inputs.cache_version }}"/' package.json
Expand All @@ -48,4 +48,4 @@ jobs:
git add .
git commit -m "Bump @actions/cache version to ${{ github.event.inputs.cache_version }}"
git push origin ${{ steps.create-branch.outputs.branch_name }}
gh pr create --title "Bump @actions/cache version to ${{ github.event.inputs.cache_version }}" --body "This PR updates the @actions/cache version to ${{ github.event.inputs.cache_version }}"
gh pr create --title "Bump @actions/cache version to ${{ github.event.inputs.cache_version }}" --body "This PR updates the @actions/cache version to ${{ github.event.inputs.cache_version }}"
3 changes: 3 additions & 0 deletions dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -125645,7 +125645,9 @@ function createAuthenticationSettings(id, username, password, settingsDirectory,
// when an alternate m2 location is specified use only that location (no .m2 directory)
// otherwise use the home/.m2/ path
yield io.mkdirP(settingsDirectory);
core.info(`Created settings directory: ${settingsDirectory}`);
yield write(settingsDirectory, generate(id, username, password, gpgPassphrase), overwriteSettings);
core.info(`Wrote ${constants.MVN_SETTINGS_FILE} to ${settingsDirectory}`);
});
}
exports.createAuthenticationSettings = createAuthenticationSettings;
Expand Down Expand Up @@ -128042,6 +128044,7 @@ function run() {
core.info(`##[add-matcher]${path.join(matchersPath, 'java.json')}`);
yield auth.configureAuthentication();
if (cache && (0, util_1.isCacheFeatureAvailable)()) {
core.info('Cache is enabled; restoring');
yield (0, cache_1.restore)(cache, cacheDependencyPath);
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,13 @@ export async function createAuthenticationSettings(
// when an alternate m2 location is specified use only that location (no .m2 directory)
// otherwise use the home/.m2/ path
await io.mkdirP(settingsDirectory);
core.info(`Created settings directory: ${settingsDirectory}`);
await write(
settingsDirectory,
generate(id, username, password, gpgPassphrase),
overwriteSettings
);
core.info(`Wrote ${constants.MVN_SETTINGS_FILE} to ${settingsDirectory}`);
}

// only exported for testing purposes
Expand Down
1 change: 1 addition & 0 deletions src/setup-java.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ async function run() {

await auth.configureAuthentication();
if (cache && isCacheFeatureAvailable()) {
core.info('Cache is enabled; restoring');
await restore(cache, cacheDependencyPath);
}
} catch (error) {
Expand Down