Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
ci(openapi): include develop branch in workflow
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
ferferga authored and adrrf committed Mar 9, 2024
1 parent 3947d12 commit 056ad00
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
Expand Down Expand Up @@ -45,14 +46,16 @@ jobs:

- name: Check if the schema was modified
id: diff
run: echo "::set-output name=count::$(git status -su | grep openapi.yaml | wc -l)"
run: echo "count=$(git status -su | grep openapi.yaml | wc -l)" >> $GITHUB_OUTPUT

# "echo" in commit returns true so the build succeeds, even if no changed files
- name: Commit new changes to the repo
if: ${{ steps.diff.outputs.count > 0 && github.event_name != 'pull_request' }}
run: |
git config user.name GitHub Actions
git config user.email [email protected]
git config pull.rebase true
git config rebase.autoStash true
git pull
git add .
git commit -m "ci: update OpenAPI schema" || echo
Expand Down

0 comments on commit 056ad00

Please sign in to comment.