No description
Find a file
Joas Schilling b4cdd9ffc7
Merge pull request #619 from nextcloud/dependabot/github_actions/dot-github/workflows/astral-sh/setup-uv-7.1.1
ci(deps): Bump astral-sh/setup-uv from 7.1.0 to 7.1.1 in /.github/workflows
2025-10-25 17:25:50 +02:00
.github ci(deps): Bump astral-sh/setup-uv in /.github/workflows 2025-10-25 01:03:09 +00:00
LICENSES chore: add update-stable-titles workflow 2025-06-10 11:02:34 +02:00
profile fix: Add SPDX license headers to all files and remove files without license information 2024-04-25 18:15:23 +02:00
screenshots Update readme 2022-08-05 15:42:49 +02:00
workflow-templates fix(publishing): Use mirror on release publishing 2025-10-24 10:47:31 +02:00
.editorconfig chore: Add missing dates 2024-04-25 18:15:27 +02:00
CONTRIBUTING.md fix: Add SPDX license headers to all files and remove files without license information 2024-04-25 18:15:23 +02:00
non-community-usernames.txt fix(community): Add new non-community username 'st3iny' 2025-10-24 08:20:46 +02:00
non-community-usernames.txt.license feat: Create non-community-usernames.txt 2024-05-07 09:31:13 +02:00
README.md fix: Add SPDX license headers to all files and remove files without license information 2024-04-25 18:15:23 +02:00
REUSE.toml chore: Update reuse to v4 and migrate to toml definitions 2024-07-04 21:36:19 +02:00
SECURITY.md refactor(security): Revise security policy for clarity and structure 2025-09-26 11:19:29 -04:00

This repository contains Nextcloud's workflow templates

Setup a new template on your repository

When creating a new workflow on your repository, you will see templates originating from here. https://github.com/nextcloud/viewer/actions/new

image

Auto-update repositories

For each template, you can propagate them on all the repos that use it.

  1. Go into https://github.com/nextcloud/.github/actions/workflows/dispatch-workflow.yml
  2. Enter the name of the workflow you want to dispatch
  3. Enter the page you want to execute (100 are done per page, so check the number of repositories, current is 260 so run for page: 1, 2 and 3)

image

  1. Wait for the actions to finish and see the checkout the pull requests

Update workflows with a script

You can also run the following shell script on your machine to update all workflows of an app. It should be run inside the cloned repository of an app and requires rsync to be installed.

⚠️ Do not forget to check the diff for unwanted changes before committing, especially when updating the workflows on stable branches!

#!/bin/sh

# Update GitHub workflows from the Nextcloud template repository.
# This script is meant to be run from the root of the repository.

# Sanity check
[ ! -d ./.github/workflows/ ] && echo "Error: .github/workflows does not exist" && exit 1

# Clone template repository
temp="$(mktemp -d)"
git clone --depth=1 https://github.com/nextcloud/.github.git "$temp"

# Update workflows
rsync -vr \
    --existing \
    --include='*/' \
    --include='*.yml' \
    --exclude='*' \
    "$temp/workflow-templates/" \
    ./.github/workflows/

# Cleanup
rm -rf "$temp"