Skip to content

Commit f71b69b

Browse files
authored
Merge pull request #24 from IBM/jo5ta/dev
Fix release workflow package path
2 parents 9348269 + 3844885 commit f71b69b

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,16 @@ jobs:
136136
SHORT_SHA=$(echo "$COMMIT_SHA" | cut -c1-7)
137137
echo "tag=v${VERSION}+${SHORT_SHA}" >> $GITHUB_OUTPUT
138138
139+
# Find packages directory (container.sh puts it under build/in_container/*/build/packages)
140+
PACKAGES_DIR=$(find build -type d -name packages | head -1)
141+
echo "packages_dir=$PACKAGES_DIR" >> $GITHUB_OUTPUT
142+
139143
# Generate checksums
140-
cd build/packages
144+
cd "$PACKAGES_DIR"
141145
sha256sum *.src.rpm > SHA256SUMS
142146
143147
# Build release body with checksums embedded
144-
cd ../..
148+
cd -
145149
cat > release_body.md << EOF
146150
Release of Common Low Level Tracing Kit
147151
@@ -155,7 +159,7 @@ jobs:
155159
156160
## Checksums (SHA256)
157161
\`\`\`
158-
$(cat build/packages/SHA256SUMS)
162+
$(cat "$PACKAGES_DIR/SHA256SUMS")
159163
\`\`\`
160164
EOF
161165
@@ -167,5 +171,5 @@ jobs:
167171
name: ${{ steps.release_info.outputs.version }}
168172
body_path: release_body.md
169173
files: |
170-
build/packages/*.src.rpm
171-
build/packages/SHA256SUMS
174+
${{ steps.release_info.outputs.packages_dir }}/*.src.rpm
175+
${{ steps.release_info.outputs.packages_dir }}/SHA256SUMS

VERSION.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
1.2.59
1+
1.2.60
22

33
# Change log
4+
## 1.2.60
5+
- fix: release workflow now finds packages in correct container output path
46
## 1.2.59
57
- ci: use ccache with GitHub cache to speed up builds
68
## 1.2.58

0 commit comments

Comments
 (0)