Skip to content

Commit 930d1ef

Browse files
committed
Fix .gitignore
1 parent e4e4538 commit 930d1ef

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

.github/workflows/generate.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ jobs:
3939
-o generated/ \
4040
--skip-validate-spec \
4141
--git-repo-id api-wrapper-codegen-php \
42-
--git-user-id BuiltByBit \
43-
--additional-properties="packageName=YourApiClient"
42+
--git-user-id BuiltByBit \
43+
--package-name builtbybit/api-wrapper-codegen-php
4444
4545
- name: Copy generated files
4646
run: |
@@ -61,5 +61,6 @@ jobs:
6161
git config --local user.email "action@github.com"
6262
git config --local user.name "GitHub Action"
6363
git add .
64+
git reset .gitignore
6465
git commit -m "Auto-generate wrapper from updated spec" || exit 0
6566
git push # Uses GITHUB_TOKEN automatically

.gitignore

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
1-
# ref: https://github.com/github/gitignore/blob/master/Composer.gitignore
1+
# OpenAPI Generator
2+
openapi-generator-cli*.jar
3+
spec.yaml
24

3-
composer.phar
4-
/vendor/
5-
6-
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
7-
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
8-
# composer.lock
9-
10-
# php-cs-fixer cache
11-
.php_cs.cache
12-
.php-cs-fixer.cache
13-
14-
# PHPUnit cache
15-
.phpunit.result.cache
5+
# Generated build artifacts
6+
.openapi-generator/

0 commit comments

Comments
 (0)