From d9210fcf16cad625841fd50ce94fbaf5fbd19405 Mon Sep 17 00:00:00 2001 From: Roman Lytvynenko Date: Thu, 19 Dec 2024 08:55:18 +0200 Subject: [PATCH] wip --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b8ff978..b50db51 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,7 @@ on: push name: CI +permissions: + contents: write jobs: phpunit: runs-on: ubuntu-latest @@ -22,3 +24,12 @@ jobs: - name: Run Testsuite run: vendor/bin/phpunit tests/ + + - name: Generate and commit API specification + run: | + php artisan scramble:export + git config --global user.name 'CI' + git config --global user.email 'ci@users.noreply.github.com' + git add api.json + git commit -m "API spec update" + git push