-
Notifications
You must be signed in to change notification settings - Fork 15
31 lines (25 loc) · 974 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Build Package
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
env:
AUTOTASK_API_USERNAME: ${{ secrets.AUTOTASK_API_USERNAME }}
AUTOTASK_API_SECRET: ${{ secrets.AUTOTASK_API_SECRET }}
AUTOTASK_API_INTEGRATION_CODE: ${{ secrets.AUTOTASK_API_INTEGRATION_CODE }}
AUTOTASK_API_BASE_URI: ${{ secrets.AUTOTASK_API_BASE_URI }}
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: composer update --prefer-dist --no-progress --no-suggest
- name: Generate Client
run: composer generate
- name: Push Changes
uses: peter-evans/create-pull-request@v4
with:
title: "Generates Updated Client"
body: "This pull request updates the existing client with a re-generated version."
branch: "generate-client"
delete-branch: true
commit-message: "[Automated] Regenerate Client"
reviewers: "aidan-casey"