mirror of
https://github.com/headroomlabs-ai/headroom.git
synced 2026-08-27 14:17:10 -04:00
fix: use /tmp for changelog artifact to avoid . file matching issues
This commit is contained in:
parent
5f0067012b
commit
66e1e6a67f
2 changed files with 18 additions and 3 deletions
0
.changelog.md
Normal file → Executable file
0
.changelog.md
Normal file → Executable file
21
.github/workflows/release.yml
vendored
21
.github/workflows/release.yml
vendored
|
|
@ -193,10 +193,22 @@ jobs:
|
|||
cat .changelog.md
|
||||
|
||||
- name: Upload changelog artifact
|
||||
run: |
|
||||
if [ -f .changelog.md ]; then
|
||||
echo "File exists, uploading..."
|
||||
ls -la .changelog.md
|
||||
cp .changelog.md /tmp/changelog-backup.md
|
||||
else
|
||||
echo "ERROR: .changelog.md does not exist!"
|
||||
exit 1
|
||||
fi
|
||||
shell: bash
|
||||
|
||||
- name: Upload changelog via action
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: changelog
|
||||
path: .changelog.md
|
||||
path: /tmp/changelog-backup.md
|
||||
if-no-files-found: error
|
||||
|
||||
- name: Build Python package
|
||||
|
|
@ -309,10 +321,13 @@ jobs:
|
|||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: changelog
|
||||
path: .
|
||||
path: /tmp
|
||||
|
||||
- name: Show changelog
|
||||
run: cat .changelog.md
|
||||
run: |
|
||||
ls -la /tmp/changelog-backup.md
|
||||
cp /tmp/changelog-backup.md .changelog.md
|
||||
cat .changelog.md
|
||||
|
||||
- name: Create GitHub Release
|
||||
env:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue