Skip to content

Commit 0e70647

Browse files
Supprimer les "yaml anchor" de cd.yml (#1567)
Remove anchors from CD workflow
1 parent 3201e93 commit 0e70647

File tree

1 file changed

+33
-7
lines changed

1 file changed

+33
-7
lines changed

.github/workflows/cd.yml

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,25 @@ jobs:
2424

2525
# Common release-drafter configuration
2626
# From https://github.com/marketplace/actions/release-drafter
27-
_release_drafter: &release_drafter
27+
# Uncomment when anchor are supported in GitHub Actions
28+
# See : https://github.com/actions/runner/issues/1182
29+
# _release_drafter: &release_drafter
30+
# permissions:
31+
# contents: write
32+
# runs-on: ubuntu-latest
33+
# name: 🔢 Release
34+
# steps:
35+
# - uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6.1.0
36+
# with:
37+
# config-name: release-config.yml
38+
# env:
39+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
41+
# Standard release draft update
42+
update_release_draft:
43+
# Uncomment when anchor are supported in GitHub Actions
44+
# See : https://github.com/actions/runner/issues/1182
45+
# <<: *release_drafter
2846
permissions:
2947
contents: write
3048
runs-on: ubuntu-latest
@@ -35,13 +53,21 @@ jobs:
3553
config-name: release-config.yml
3654
env:
3755
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
39-
# Standard release draft update
40-
update_release_draft:
41-
<<: *release_drafter
4256
needs: [preprod]
4357

4458
# Hotfix-only release draft update
4559
update_release_draft_for_hotfix:
46-
<<: *release_drafter
47-
if: ! (contains("hotfix", github.ref))
60+
# Uncomment when anchor are supported in GitHub Actions
61+
# See : https://github.com/actions/runner/issues/1182
62+
# <<: *release_drafter
63+
permissions:
64+
contents: write
65+
runs-on: ubuntu-latest
66+
name: 🔢 Release
67+
steps:
68+
- uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6.1.0
69+
with:
70+
config-name: release-config.yml
71+
env:
72+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73+
if: ! (contains("hotfix", github.ref_name))

0 commit comments

Comments
 (0)