Skip to content

Commit

Permalink
Fix restoring rye global settings (#225)
Browse files Browse the repository at this point in the history
The previous implementation never restored the setting when they had been changed
  • Loading branch information
eifinger authored Apr 9, 2024
1 parent a47d9c5 commit 64b4e4f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/save-cache/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/save-cache/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/save-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function run(): Promise<void> {
}
const cachedPath = core.getState(STATE_TOOL_CACHED_PATH)
await io.rmRF(`${cachedPath}/${RYE_CONFIG_TOML}`)
if (fs.existsSync(`${cachedPath}/${RYE_CONFIG_TOML}`)) {
if (fs.existsSync(`${cachedPath}/${RYE_CONFIG_TOML_BACKUP}`)) {
await io.mv(
`${cachedPath}/${RYE_CONFIG_TOML_BACKUP}`,
`${cachedPath}/${RYE_CONFIG_TOML}`
Expand Down

0 comments on commit 64b4e4f

Please sign in to comment.