Skip to content

Commit 29e24e4

Browse files
commit release note to doc/release-note-vxxxx branch (#8472)
Co-authored-by: MartinForReal <[email protected]>
1 parent c771e69 commit 29e24e4

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

.github/workflows/release.yaml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ jobs:
155155
- build-acr-credential-provider
156156
permissions:
157157
contents: write
158-
pull-requests: write
159158
steps:
160159
- name: Harden Runner
161160
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
@@ -166,7 +165,7 @@ jobs:
166165
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
167166
with:
168167
ref: documentation
169-
fetch-depth: 0
168+
fetch-depth: 2
170169
- name: Setup Golang
171170
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
172171
with:
@@ -190,3 +189,31 @@ jobs:
190189
./artifacts/cloud-node-manager-*-*/*
191190
./artifacts/cloud-controller-manager-*-*/*
192191
./artifacts/acr-credential-provider-*-*/*
192+
- name: Update site release note
193+
uses: peter-evans/create-pull-request@4320041ed380b20e97d388d56a7fb4f9b8c20e79 # v7.0.0
194+
with:
195+
branch: doc/release-note-${{github.ref_name}}
196+
delete-branch: true
197+
base: documentation
198+
commit-message: Update release notes for ${{github.ref_name}}
199+
200+
- uses: stefanzweifel/git-auto-commit-action@v5
201+
with:
202+
# Optional. Commit message for the created commit.
203+
# Defaults to "Apply automatic changes"
204+
commit_message: Update release notes for ${{github.ref_name}}
205+
206+
# Optional. Local and remote branch name where commit is going to be pushed
207+
# to. Defaults to the current branch.
208+
# You might need to set `create_branch: true` if the branch does not exist.
209+
branch: doc/release-note-${{github.ref_name}}
210+
211+
# Optional glob pattern of files which should be added to the commit
212+
# Defaults to all (.)
213+
# See the `pathspec`-documentation for git
214+
# - https://git-scm.com/docs/git-add#Documentation/git-add.txt-ltpathspecgt82308203
215+
# - https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefpathspecapathspec
216+
file_pattern: './content/en/blog/releases/*.md'
217+
218+
# Optional. Create given branch name in local and remote repository.
219+
create_branch: true

0 commit comments

Comments
 (0)