Skip to content

Commit

Permalink
Removed duplicate step in job
Browse files Browse the repository at this point in the history
  • Loading branch information
TiiFuchs authored May 8, 2024
1 parent 010bcb4 commit 26be3f4
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,6 @@ jobs:
repository: telepath-php/generator
path: generator

- name: Generate Companion App Token
id: generate-token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.COMPANION_APP_ID }}
private_key: ${{ secrets.COMPANION_APP_PRIVATE_KEY }}

- name: Set up PHP with Composer
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: composer

- name: Install Dependencies
run: |
cd generator
Expand All @@ -117,6 +104,13 @@ jobs:
cd generator
php artisan generate ../telepath/src/
- name: Generate Companion App Token
id: generate-token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.COMPANION_APP_ID }}
private_key: ${{ secrets.COMPANION_APP_PRIVATE_KEY }}

- name: Commit Changes
uses: peter-evans/create-pull-request@v6
with:
Expand Down

0 comments on commit 26be3f4

Please sign in to comment.