Skip to content

Commit a28f80c

Browse files
committed
update
1 parent 9d70e2e commit a28f80c

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/release-metadata.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,12 @@ jobs:
100100
}
101101
fi
102102
103-
# Rename to include cache type
103+
# Rename and fix paths
104104
if [ -f "/tmp/output/bincache/${{ matrix.arch }}.json" ]; then
105+
# Fix temp paths in build_script URLs
106+
sed -i 's|/tmp/bincache-recipes/binaries/|binaries/|g' "/tmp/output/bincache/${{ matrix.arch }}.json"
107+
# Fix build_gha URL to point to soarpkgs
108+
sed -i 's|github.com/pkgforge/bincache/|github.com/${{ github.repository }}/|g' "/tmp/output/bincache/${{ matrix.arch }}.json"
105109
mv "/tmp/output/bincache/${{ matrix.arch }}.json" "/tmp/output/bincache-${{ matrix.arch }}.json"
106110
echo "::notice::bincache metadata generated"
107111
jq 'length' "/tmp/output/bincache-${{ matrix.arch }}.json"
@@ -127,8 +131,12 @@ jobs:
127131
}
128132
fi
129133
130-
# Rename to include cache type
134+
# Rename and fix paths
131135
if [ -f "/tmp/output/pkgcache/${{ matrix.arch }}.json" ]; then
136+
# Fix temp paths in build_script URLs
137+
sed -i 's|/tmp/pkgcache-recipes/packages/|packages/|g' "/tmp/output/pkgcache/${{ matrix.arch }}.json"
138+
# Fix build_gha URL to point to soarpkgs
139+
sed -i 's|github.com/pkgforge/pkgcache/|github.com/${{ github.repository }}/|g' "/tmp/output/pkgcache/${{ matrix.arch }}.json"
132140
mv "/tmp/output/pkgcache/${{ matrix.arch }}.json" "/tmp/output/pkgcache-${{ matrix.arch }}.json"
133141
echo "::notice::pkgcache metadata generated"
134142
jq 'length' "/tmp/output/pkgcache-${{ matrix.arch }}.json"

0 commit comments

Comments
 (0)