Skip to content

Commit 0af01d8

Browse files
fix: update to create pull request vs automatic commit to main (#150)
1 parent 8da46b3 commit 0af01d8

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/update-snowflake-feature-coverage.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,17 @@ jobs:
3939
cd localstack-docs
4040
mv coverage-features.md src/content/docs/snowflake/features/index.md
4141
mv coverage-functions.md src/content/docs/snowflake/sql-functions.md
42-
43-
- name: Commit changes
44-
uses: EndBug/add-and-commit@v9
42+
43+
- name: Create PR
44+
uses: peter-evans/create-pull-request@v7
45+
if: ${{ success() && steps.check-for-changes.outputs.diff-count != '0' && steps.check-for-changes.outputs.diff-count != '' }}
4546
with:
46-
author_name: 'LocalStack Bot'
47-
author_email: localstack-bot@users.noreply.github.com
48-
message: 'Updated function coverage docs'
49-
cwd: localstack-docs
50-
add: 'src/content/'
47+
path: docs
48+
title: "Update function coverage documentation"
49+
body: "Automated update of snowflake feature coverage docs"
50+
branch: "snowflake-feature-coverage-updates"
51+
author: "LocalStack Bot <localstack-bot@users.noreply.github.com>"
52+
committer: "LocalStack Bot <localstack-bot@users.noreply.github.com>"
53+
commit-message: "automated update of snowflake feature coverage docs"
54+
token: ${{ secrets.PRO_ACCESS_TOKEN }}
55+
reviewers: hovaesco, harshcasper

0 commit comments

Comments
 (0)