Skip to content

Commit 476aca9

Browse files
committed
ci: Stop auto-committing changes as it doesn't work in external PRs
1 parent 5de5920 commit 476aca9

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

.github/workflows/checks.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ jobs:
6161
- name: Run pylint
6262
run: poetry run pylint openapi_python_client
6363

64-
- name: Regenerate Golden Record
65-
run: poetry run task regen_e2e
66-
6764
- name: Run pytest
6865
run: poetry run pytest --cov=openapi_python_client --cov-report=term-missing tests end_to_end_tests/test_end_to_end.py --basetemp=tests/tmp
6966
env:
@@ -77,12 +74,6 @@ jobs:
7774
with:
7875
files: ./coverage.xml
7976

80-
- uses: stefanzweifel/git-auto-commit-action@v4
81-
if: runner.os == 'Linux'
82-
with:
83-
commit_message: "chore: Regenerate E2E Golden Record"
84-
file_pattern: end_to_end_tests/golden-record end_to_end_tests/custom-templates-golden-record
85-
8677
integration:
8778
name: Integration Tests
8879
runs-on: ubuntu-latest
@@ -116,6 +107,8 @@ jobs:
116107
- name: Regenerate Integration Client
117108
run: |
118109
poetry run openapi-python-client update --url http://localhost:3000/openapi.json --config integration-tests-config.yaml
110+
- name: Check for any file changes
111+
run: changed_files=$(git status --porcelain | wc -l) && [ changed_files != 0 ] && exit 1
119112
- name: Cache Generated Client Dependencies
120113
uses: actions/cache@v2
121114
with:
@@ -133,6 +126,3 @@ jobs:
133126
run: |
134127
cd integration-tests
135128
poetry run pytest
136-
- uses: stefanzweifel/git-auto-commit-action@v4
137-
with:
138-
commit_message: "chore: Regenerate Integration Client"

0 commit comments

Comments
 (0)