feat: Public API, new namespace, disk actions, sort order, 503s, automated builds #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build PHP client | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
concurrency: | |
# On the main branch we want all builds to complete, even if new commits are merged. | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ !contains(github.ref, 'main')}} | |
jobs: | |
build-php: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Generate our client | |
run: make build | |
# Commit all changed files back to the repository | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "feat(generator): new client automatically generated in GitHub Actions" | |
openapi: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install openapi-changes | |
run: | | |
npm i -g @pb33f/openapi-changes | |
- name: Katapult Core API Spec Changes | |
id: core-changes | |
run: | | |
echo "core_changes<<EOF" >> $GITHUB_OUTPUT | |
openapi-changes summary --no-logo --no-color --markdown . katapult-core-openapi.json >> $GITHUB_OUTPUT | |
echo "EOF" >> $GITHUB_OUTPUT | |
- name: Katapult Public API Spec Changes | |
id: public-changes | |
run: | | |
echo "public_changes<<EOF" >> $GITHUB_OUTPUT | |
openapi-changes summary --no-logo --no-color --markdown . katapult-public-openapi.json >> $GITHUB_OUTPUT | |
echo "EOF" >> $GITHUB_OUTPUT | |
- uses: mshick/add-pr-comment@v2 | |
with: | |
message: | | |
## Core API Changes | |
${{ steps.core-changes.outputs.core_changes || 'No changes.' }} | |
## Public API Changes | |
${{ steps.public-changes.outputs.public_changes || 'No changes.' }} |