Skip to content

Commit 33670ae

Browse files
committed
chore(pulumi): auto-applied workflow
this file was auto-applied from pulumi located here: - https://github.com/octodns-infomaniak/.github Signed-off-by: Ludovic Ortega <[email protected]>
1 parent 3812d4d commit 33670ae

File tree

1 file changed

+29
-24
lines changed

1 file changed

+29
-24
lines changed

.github/workflows/release.yml

+29-24
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,35 @@ on:
66
- '*'
77
permissions:
88
contents: write
9-
109
id-token: write
11-
12-
jobs:
13-
changelog:
14-
name: Create release as draft with changelog
10+
jobs:
11+
changelog:
12+
name: Generate changelog
13+
runs-on: ubuntu-latest
14+
outputs:
15+
release_body: ${{ steps.git-cliff.outputs.content }}
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
- name: Generate a changelog
21+
id: git-cliff
22+
uses: orhun/git-cliff-action@v4
23+
with:
24+
config: .github/cliff.toml
25+
args: -vv --current
26+
env:
27+
OUTPUT: CHANGELOG.md
28+
GITHUB_REPO: ${{ github.repository }}
29+
create_draft_release:
30+
name: Create release as draft
1531
runs-on: ubuntu-latest
16-
steps:
17-
- uses: actions/checkout@v4
18-
with:
19-
fetch-depth: 0
20-
- name: Generate a changelog
21-
uses: orhun/git-cliff-action@v4
22-
with:
23-
config: .github/cliff.toml
24-
args: --current
25-
env:
26-
OUTPUT: CHANGELOG.md
27-
GITHUB_REPO: ${{ github.repository }}
28-
- name: Create release
29-
run: gh release create ${{ github.ref_name }} -F CHANGELOG.md --draft
30-
env:
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
needs: [changelog]
33+
- name: Create release as draft
34+
run: gh release create ${{ github.ref_name }} -F ${{ needs.changelog.outputs.release_body }}--draft
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
3238

3339
package:
3440
name: Package
@@ -49,11 +55,10 @@ jobs:
4955
uv build
5056
- name: Publish package distributions to PyPI
5157
uses: pypa/gh-action-pypi-publish@release/v1
52-
53-
publish:
58+
publish_release:
5459
name: Publish release
5560
runs-on: ubuntu-latest
56-
needs: [changelog, package]
61+
needs: [create_draft_release, changelog, package]
5762
steps:
5863
- name: Checkout
5964
uses: actions/checkout@v4

0 commit comments

Comments
 (0)