Skip to content

Commit 3bbf43c

Browse files
committed
ci(changelog): unify job
1 parent a8a4b15 commit 3bbf43c

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

.github/workflows/cicd.yml

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,24 @@ permissions:
1919

2020
jobs:
2121

22-
changelog-fragment:
23-
name: Create changelog fragment
22+
changelog:
23+
name: Changelog
2424
runs-on: ubuntu-latest
2525
permissions:
2626
contents: write
2727
pull-requests: write
2828
steps:
29-
- uses: ansys/actions/doc-changelog@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
29+
- name: Create fragment
30+
if: github.event_name == 'pull_request'
31+
uses: ansys/actions/doc-changelog@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
32+
with:
33+
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
34+
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
35+
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
36+
37+
- name: Deploy changelog
38+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
39+
uses: ansys/actions/doc-deploy-changelog@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
3040
with:
3141
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
3242
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
@@ -175,18 +185,3 @@ jobs:
175185
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
176186
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
177187

178-
deploy-changelog:
179-
name: Deploy changelog
180-
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
181-
runs-on: ubuntu-latest
182-
needs: doc-deploy-stable
183-
permissions:
184-
contents: write
185-
pull-requests: write
186-
steps:
187-
- uses: ansys/actions/doc-deploy-changelog@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
188-
with:
189-
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
190-
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
191-
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
192-

0 commit comments

Comments
 (0)