Skip to content
Closed
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
14 changes: 9 additions & 5 deletions dist/build/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/build/index.js.map

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions dist/get-plan/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/get-plan/index.js.map

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions dist/plan-integration/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/plan-integration/index.js.map

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions dist/plan-scan/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/plan-scan/index.js.map

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions dist/plan/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/plan/index.js.map

Large diffs are not rendered by default.

25 changes: 17 additions & 8 deletions dist/publish/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/publish/index.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

Each revision is versioned by the date of the revision.

## 2026-03-17

- Fix publish charm uploading duplicate revisions when the same charm is built across multiple integration test runs.

## 2026-03-10

- Drop leftover registry input.
Expand Down
11 changes: 8 additions & 3 deletions src/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ class Publish {
}
let charmName: string | undefined
let charmSourceDir: string | undefined
const allFiles: string[] = []
const allFiles: Map<string, string> = new Map()
for (const charm of charms) {
const tmp = mkdtemp()
core.info(
Expand Down Expand Up @@ -304,12 +304,17 @@ class Publish {
charmName = manifest.name
charmSourceDir = charm.source_directory
}
allFiles.push(...manifest.files.map(f => path.join(tmp, f)))
for (const f of manifest.files) {
const fullPath = path.join(tmp, f)
if (!allFiles.has(path.basename(f))) {
allFiles.set(path.basename(f), fullPath)
}
}
}
return {
name: charmName!,
dir: charmSourceDir!,
files: allFiles
files: [...allFiles.values()]
}
}

Expand Down
Loading