Skip to content

Commit b8717cd

Browse files
do nothing if the test is successful
1 parent 042d36f commit b8717cd

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

.github/workflows/data-refresh.yaml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -56,26 +56,3 @@ jobs:
5656
run: |
5757
git checkout main
5858
git branch -D $BRANCH_NAME
59-
60-
- name: Commit changes if tests pass
61-
if: steps.tests.outcome == 'success'
62-
run: |
63-
git config --local user.email "github-actions[bot]@users.noreply.github.com"
64-
git config --local user.name "github-actions[bot]"
65-
git add tests/mocks/data/
66-
git commit -m "chore: update mock data [skip ci]"
67-
git push origin $BRANCH_NAME
68-
69-
- name: Create PR if tests pass
70-
if: steps.tests.outcome == 'success'
71-
uses: actions/github-script@v7
72-
with:
73-
script: |
74-
github.rest.pulls.create({
75-
owner: context.repo.owner,
76-
repo: context.repo.repo,
77-
title: '📦 Update mock data',
78-
body: 'This PR updates the mock data used in tests.',
79-
head: process.env.BRANCH_NAME,
80-
base: 'main'
81-
})

0 commit comments

Comments
 (0)