Skip to content
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

chore: ci adjustments #385

Merged
merged 6 commits into from
Sep 18, 2024
Merged
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
41 changes: 41 additions & 0 deletions .github/workflows/block-merge-eol.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow is provided via the organization template repository
#
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
#
# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: MIT

name: Block merges for EOL

on: pull_request

permissions:
contents: read

concurrency:
group: block-merge-eol-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
block-merges-eol:
name: Block merges for EOL branches

# Only run on stableXX branches
if: startsWith( github.base_ref, 'stable')
runs-on: ubuntu-latest-low

steps:
- name: Set server major version environment
run: |
# retrieve version number from branch reference
server_major=$(echo "${{ github.base_ref }}" | sed -En 's/stable//p')
echo "server_major=$server_major" >> $GITHUB_ENV
echo "current_month=$(date +%Y-%m)" >> $GITHUB_ENV

- name: Checking if ${{ env.server_major }} is EOL
run: |
curl -s https://raw.githubusercontent.com/nextcloud-releases/updater_server/production/config/major_versions.json \
| jq '.["${{ env.server_major }}"]["eol"] // "9999-99" | . >= "${{ env.current_month }}"' \
| grep -q true

40 changes: 40 additions & 0 deletions .github/workflows/block-merge-freeze.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow is provided via the organization template repository
#
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
#
# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: MIT

name: Block merges during freezes

on:
pull_request:
types: [opened, ready_for_review, reopened, synchronize]

permissions:
contents: read

concurrency:
group: block-merge-freeze-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
block-merges-during-freeze:
name: Block merges during freezes

if: github.event.pull_request.draft == false

runs-on: ubuntu-latest-low

steps:
- name: Register server reference to fallback to master branch
run: |
server_ref="$(if [ '${{ github.base_ref }}' = 'main' ]; then echo -n 'master'; else echo -n '${{ github.base_ref }}'; fi)"
echo "server_ref=$server_ref" >> $GITHUB_ENV
- name: Download version.php from ${{ env.server_ref }}
run: curl 'https://raw.githubusercontent.com/nextcloud/server/${{ env.server_ref }}/version.php' --output version.php

- name: Run check
run: cat version.php | grep 'OC_VersionString' | grep -i -v 'RC'

2 changes: 1 addition & 1 deletion .github/workflows/command-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:

steps:
- name: Restore cached git repository
uses: buildjet/cache@e376f15c6ec6dc595375c78633174c7e5f92dc0e # v3
uses: buildjet/cache/save@v4
with:
path: .git
key: git-repo
Expand Down
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Nextcloud AppAPI

[![Tests - Deploy](https://github.com/cloud-py-api/app_api/actions/workflows/tests-deploy.yml/badge.svg)](https://github.com/cloud-py-api/app_api/actions/workflows/tests-deploy.yml)
[![Tests](https://github.com/cloud-py-api/app_api/actions/workflows/tests.yml/badge.svg)](https://github.com/cloud-py-api/app_api/actions/workflows/tests.yml)
[![Docs](https://github.com/cloud-py-api/app_api/actions/workflows/docs.yml/badge.svg)](https://cloud-py-api.github.io/app_api/)
[![Tests - Deploy](https://github.com/nextcloud/app_api/actions/workflows/tests-deploy.yml/badge.svg)](https://github.com/nextcloud/app_api/actions/workflows/tests-deploy.yml)
[![Tests](https://github.com/nextcloud/app_api/actions/workflows/tests.yml/badge.svg)](https://github.com/nextcloud/app_api/actions/workflows/tests.yml)
[![Docs](https://github.com/nextcloud/app_api/actions/workflows/docs.yml/badge.svg)](https://nextcloud.github.io/app_api/)

### Supercharge your Nextcloud with AppAPI and applications specifically designed for it.

Expand All @@ -23,22 +23,22 @@

## Documentation

- [List of External Applications](https://github.com/cloud-py-api/app_api/blob/main/APPS.md)
- [Documentation](https://cloud-py-api.github.io/app_api/)
- [Installation](https://cloud-py-api.github.io/app_api/Installation.html)
- [Creation of Deploy Daemon](https://cloud-py-api.github.io/app_api/ManagingExternalApplications.html)
- [Managing External Applications](https://cloud-py-api.github.io/app_api/CreationOfDeployDaemon.html)
- [Technical Details](https://cloud-py-api.github.io/app_api/tech_details/index.html)
- [Concepts](https://cloud-py-api.github.io/app_api/Concepts.html)
- [Api Scopes](https://cloud-py-api.github.io/app_api/tech_details/ApiScopes.html)
- [AppAPI Nextcloud APIs](https://cloud-py-api.github.io/app_api/tech_details/api/index.html)
- [Authentication](https://cloud-py-api.github.io/app_api/tech_details/Authentication.html)
- [Deployment](https://cloud-py-api.github.io/app_api/tech_details/Deployment.html)
- [Contribute](https://github.com/cloud-py-api/app_api/blob/main/.github/CONTRIBUTING.md)
- [Discussions](https://github.com/cloud-py-api/app_api/discussions)
- [Issues](https://github.com/cloud-py-api/app_api/issues)
- [Setting up dev environment](https://cloud-py-api.github.io/app_api/DevSetup.html)
- [Changelog](https://github.com/cloud-py-api/app_api/blob/main/CHANGELOG.md)
- [List of External Applications](https://github.com/nextcloud/app_api/blob/main/APPS.md)
- [Documentation](https://nextcloud.github.io/app_api/)
- [Installation](https://nextcloud.github.io/app_api/Installation.html)
- [Creation of Deploy Daemon](https://nextcloud.github.io/app_api/ManagingExternalApplications.html)
- [Managing External Applications](https://nextcloud.github.io/app_api/CreationOfDeployDaemon.html)
- [Technical Details](https://nextcloud.github.io/app_api/tech_details/index.html)
- [Concepts](https://nextcloud.github.io/app_api/Concepts.html)
- [Api Scopes](https://nextcloud.github.io/app_api/tech_details/ApiScopes.html)
- [AppAPI Nextcloud APIs](https://nextcloud.github.io/app_api/tech_details/api/index.html)
- [Authentication](https://nextcloud.github.io/app_api/tech_details/Authentication.html)
- [Deployment](https://nextcloud.github.io/app_api/tech_details/Deployment.html)
- [Contribute](https://github.com/nextcloud/app_api/blob/main/.github/CONTRIBUTING.md)
- [Discussions](https://github.com/nextcloud/app_api/discussions)
- [Issues](https://github.com/nextcloud/app_api/issues)
- [Setting up dev environment](https://nextcloud.github.io/app_api/DevSetup.html)
- [Changelog](https://github.com/nextcloud/app_api/blob/main/CHANGELOG.md)

### Support

Expand Down
2 changes: 1 addition & 1 deletion js/app_api-adminSettings.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/app_api-adminSettings.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/app_api-filesplugin.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/app_api-filesplugin.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/app_api-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/app_api-main.js.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading