Skip to content

Commit 73314df

Browse files
committed
update for create-release
1 parent ef2f78e commit 73314df

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

.github/workflows/build-iso.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
just check
7070
7171
- name: Maximize Build Space
72+
if: contains(fromJson('["workflow_dispatch", "workflow_call"]'), github.event_name) || github.event.schedule == '41 6 * * 0'
7273
uses: ublue-os/remove-unwanted-software@v7
7374

7475
- name: Build ISO

.github/workflows/changelogs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
if: contains(fromJson('["stable", "bazzite"]'), inputs.target)
3939
shell: bash
4040
run: |
41+
set -eoux pipefail
4142
touch url.md
4243
for artifact in $(find url-${{ inputs.target }}-*);
4344
do
@@ -48,19 +49,18 @@ jobs:
4849
- name: Generate Release Text
4950
id: generate-release
5051
run: |
52+
set -eoux pipefail
5153
python3 ./changelogs.py \
5254
"${{ inputs.target }}" \
53-
./output.env ./changelog.md --workdir . --handwritten "${{ inputs.handwritten }}" --urlmd "${{ steps.merge-artifacts.outputs.urlmd }}"
54-
source ./output.env
55-
echo "title=${TITLE}" >> $GITHUB_OUTPUT
56-
echo "tag=${TAG}" >> $GITHUB_OUTPUT
55+
./output-${{ inputs.target }}.env ./changelog-${{ inputs.target }}.md --workdir . --handwritten "${{ inputs.handwritten }}" --urlmd "${{ steps.merge-artifacts.outputs.urlmd }}"
56+
source ./output-${{ inputs.target }}.env
5757
5858
- name: Upload Changelogs as Artifact
5959
uses: actions/upload-artifact@v4
6060
with:
6161
name: changelogs-${{ inputs.target }}
6262
path:
63-
./changelog.md
63+
./changelog-${{ inputs.target }}.md
6464
if-no-files-found: error
6565
retention-days: 0
6666
compression-level: 0

.github/workflows/create-release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,22 @@ jobs:
1515
name: Create Release
1616
runs-on: ubuntu-latest
1717
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
1821
- name: Download Artifacts
1922
uses: actions/download-artifact@v4
2023
with:
21-
pattern: changelogs**
22-
merge-multiple: false
24+
pattern: changelogs-*
25+
merge-multiple: true
2326
run-id: ${{ inputs.run-id || github.run_id }}
2427

2528
- name: Prepare Release
2629
id: prepare-release
2730
shell: bash
2831
run: |
2932
set -eoux pipefail
30-
cat changelogs-*/changelog.md >> changelog.md
33+
cat changelog*.md > changelog.md
3134
last_tag=$(git tag --list m2os-* | sort -r | head -1)
3235
date_extract="$(echo ${last_tag:-} | cut -d "-" -f 2 | cut -d "." -f 1)"
3336
date_version="$(echo ${last_tag:-} | cut -d "." -f 2)"

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
m2os_*
22
previous.manifest*
3+
changelog-*.md
34
changelog.md
5+
output-*.env
46
output.env
57
version.txt

Justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ run-iso image="bluefin":
436436
changelogs branch="stable" urlmd="" handwritten="":
437437
#!/usr/bin/bash
438438
set -eoux pipefail
439-
python3 changelogs.py {{ branch }} ./output.env ./changelog.md --workdir . --handwritten "{{ handwritten }}" --urlmd "{{ urlmd }}"
439+
python3 changelogs.py {{ branch }} ./output-{{ branch }}.env ./changelog-{{ branch }}.md --workdir . --handwritten "{{ handwritten }}" --urlmd "{{ urlmd }}"
440440

441441
# Verify Container with Cosign
442442
[group('Utility')]

0 commit comments

Comments
 (0)