Skip to content

Commit 563ed1d

Browse files
committed
Fix download path in dependabot-commit-dist.yml
1 parent 76543db commit 563ed1d

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/dependabot-commit-dist.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,23 @@ jobs:
8484
github-token: ${{ secrets.GITHUB_TOKEN }}
8585

8686
## Defence in depth: confirm the artifact contains exactly the two
87-
## expected bundle files before copying into the repo.
87+
## expected bundle files before copying into the repo. The upload
88+
## step in 'build-server.yml' preserves the 'server/dist/' prefix
89+
## relative to the workspace root, so files land under that path.
8890
- name: Commit Dist - Verify artifact contents
8991
if: steps.verify.outputs.skip == 'false'
9092
run: |
9193
set -euo pipefail
92-
for f in codeql-development-mcp-server.js codeql-development-mcp-server.js.map; do
94+
for f in server/dist/codeql-development-mcp-server.js \
95+
server/dist/codeql-development-mcp-server.js.map; do
9396
if [ ! -f "artifact/${f}" ]; then
9497
echo "::error::Missing expected artifact file: ${f}"
9598
exit 1
9699
fi
97100
done
98101
UNEXPECTED="$(find artifact -type f \
99-
! -name 'codeql-development-mcp-server.js' \
100-
! -name 'codeql-development-mcp-server.js.map' \
102+
! -path 'artifact/server/dist/codeql-development-mcp-server.js' \
103+
! -path 'artifact/server/dist/codeql-development-mcp-server.js.map' \
101104
-print)"
102105
if [ -n "${UNEXPECTED}" ]; then
103106
echo "::error::Unexpected files in artifact:"
@@ -111,8 +114,8 @@ jobs:
111114
BRANCH: ${{ steps.pr.outputs.branch }}
112115
run: |
113116
set -euo pipefail
114-
cp artifact/codeql-development-mcp-server.js server/dist/
115-
cp artifact/codeql-development-mcp-server.js.map server/dist/
117+
cp artifact/server/dist/codeql-development-mcp-server.js server/dist/
118+
cp artifact/server/dist/codeql-development-mcp-server.js.map server/dist/
116119
117120
git config user.name 'dependabot[bot]'
118121
git config user.email '49699333+dependabot[bot]@users.noreply.github.com'

0 commit comments

Comments
 (0)