Skip to content

Commit

Permalink
add the action to update openapi definition
Browse files Browse the repository at this point in the history
  • Loading branch information
bristermitten committed Sep 12, 2024
1 parent 8a3a2e0 commit b5910a4
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ jobs:
sudo apt-get autoclean -y >/dev/null 2>&1
echo "some packages purged"
- uses: DeterminateSystems/nix-installer-action@main
name: Install Nix

Expand All @@ -65,13 +64,33 @@ jobs:

- name: Run integration tests
run: nix run .#\integration-tests

- name: What GHC version?
run: nix develop -c ghc --version

update-openapi-file:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v4

- uses: DeterminateSystems/nix-installer-action@main
name: Install Nix

- name: Generate OpenAPI file
run: nix run .#server gen-openapi > templatespiler-server/openapi.json

- name: Commit OpenAPI file
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: update openapi file"

build-docker:
runs-on: ubuntu-latest
needs: build
needs: [build, update-openapi-file]
permissions:
contents: read
packages: write
Expand Down

0 comments on commit b5910a4

Please sign in to comment.