Skip to content

Commit 3819dc6

Browse files
authored
Merge pull request #5 from Cosmos-0118/dev
fix: use create-pull-request action to comply with branch protection …
2 parents c250883 + c771f09 commit 3819dc6

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/refresh-release-manifest.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,15 @@ jobs:
156156
Write-Host "Updated $manifestPath with:"
157157
Write-Host $manifestJson
158158
159-
- name: Commit manifest update
160-
uses: stefanzweifel/git-auto-commit-action@v5
159+
- name: Create pull request with manifest update
160+
uses: peter-evans/create-pull-request@v7
161161
with:
162-
commit_message: "chore: refresh release manifest"
163-
file_pattern: data/catalog/latest-release.json
164-
branch: ${{ github.event.release.target_commitish }}
162+
token: ${{ secrets.GITHUB_TOKEN }}
163+
commit-message: "chore: refresh release manifest"
164+
branch: chore/refresh-release-manifest
165+
base: ${{ github.event.release.target_commitish }}
166+
title: "chore: refresh release manifest for ${{ github.event.release.tag_name }}"
167+
body: |
168+
Automated update of `data/catalog/latest-release.json` triggered by release **${{ github.event.release.tag_name }}**.
169+
add-paths: data/catalog/latest-release.json
170+
delete-branch: true

0 commit comments

Comments
 (0)