Skip to content

Commit f9afd98

Browse files
committed
debug
1 parent cc8a00e commit f9afd98

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,18 @@ permissions:
1717

1818
jobs:
1919

20+
create_artifacts:
21+
name: Create Artifacts
22+
uses: ./.github/workflows/create_release_artifacts.yaml
23+
with:
24+
release_version: ${{ inputs.version }}
25+
2026
create_release:
2127
name: Create Draft Release
2228
runs-on: ubuntu-24.04
2329
if: github.ref == 'refs/heads/main'
30+
needs:
31+
- create_artifacts
2432
permissions:
2533
contents: write
2634
outputs:
@@ -62,12 +70,6 @@ jobs:
6270
untagged_id=$(echo "$release_url" | sed 's|.*tag/||')
6371
echo "release_id=$untagged_id" >> "$GITHUB_OUTPUT"
6472
65-
create_artifacts:
66-
name: Create Artifacts
67-
uses: ./.github/workflows/create_release_artifacts.yaml
68-
with:
69-
release_version: ${{ inputs.version }}
70-
7173
upload_artifacts:
7274
name: Upload Artifacts to Release
7375
needs:

.github/workflows/release_test.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ name: Release Test
33
on: [push]
44

55
permissions:
6-
contents: read
6+
contents: none
77

88
jobs:
99

1010
determine_version:
1111
name: Determine Version
1212
runs-on: ubuntu-24.04
13+
permissions:
14+
contents: read
1315
outputs:
1416
release_version: ${{ steps.set_version.outputs.version }}
1517
container:
@@ -43,7 +45,6 @@ jobs:
4345
runs-on: ubuntu-24.04
4446
needs:
4547
- create_artifacts
46-
- determine_version
4748
permissions:
4849
contents: write
4950
outputs:
@@ -63,10 +64,10 @@ jobs:
6364
cp .github/release_preamble.md release_body.md
6465
changelog_section=$(awk '/^## \['"$VERSION"'\]/{flag=1; next} /^## \[/{flag=0} flag' CHANGELOG.md)
6566
if [ -z "$changelog_section" ]; then
66-
echo "Error: No changelog section found for version $VERSION"
67-
exit 1
67+
echo "No changelog section found for version $VERSION, using only release preamble"
68+
else
69+
echo "$changelog_section" >> release_body.md
6870
fi
69-
echo "$changelog_section" >> release_body.md
7071
7172
- name: Create Draft Release
7273
id: create_release

0 commit comments

Comments
 (0)