Skip to content

Green CI? #220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/template.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[❌ {{github.job}} failed]({{github.buildUrl}})
35 changes: 12 additions & 23 deletions .github/workflows/test-repositories.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@

name: Generate OpenAPI in Repositories

on:
pull_request:
push:
branches:
- main
- master
- stable*
on: pull_request

permissions:
contents: read
Expand Down Expand Up @@ -43,7 +37,7 @@ jobs:
- "nextcloud/tables"
- "nextcloud/terms_of_service"

name: openapi-repositories
name: ${{ matrix.repositories }}

steps:
- name: Checkout
Expand Down Expand Up @@ -85,19 +79,14 @@ jobs:
- name: Show changes of the API for assistance
working-directory: temp-repository/
run: |
git status
git --no-pager diff
git status
git --no-pager diff

summary:
permissions:
contents: none
runs-on: ubuntu-latest
needs: openapi-repositories

if: always()

name: openapi-repositories-summary

steps:
- name: Summary status
run: if ${{ needs.openapi-repositories.result != 'success' && needs.openapi-repositories.result != 'skipped' }}; then exit 1; fi
- name: Generate Markdown Summary
uses: Ma11hewThomas/github-markdown-builder@v1
if: failure()
with:
template-file-path: './.github/workflows/template.hbs'
pull-request: true
env:
GITHUB_TOKEN: ${{ secrets.COMMAND_BOT_PAT }}
6 changes: 6 additions & 0 deletions REUSE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ path = ["tests/openapi-administration.json", "tests/openapi-ex_app.json", "tests
precedence = "aggregate"
SPDX-FileCopyrightText = "2024 Nextcloud GmbH and Nextcloud contributors"
SPDX-License-Identifier = "AGPL-3.0-or-later"

[[annotations]]
path = [".github/workflows/template.hbs"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2025 Nextcloud GmbH and Nextcloud contributors"
SPDX-License-Identifier = "AGPL-3.0-or-later"
Loading