https://github.com/nextcloud-libraries/.github
https://github.com/nextcloud-libraries/.github
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nextcloud-libraries/.github
- Owner: nextcloud-libraries
- Created: 2025-03-26T09:05:23.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2026-01-29T07:14:05.000Z (about 2 months ago)
- Last Synced: 2026-01-29T15:47:16.240Z (about 2 months ago)
- Size: 1.91 MB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSES/Apache-2.0.txt
- Security: SECURITY.md
Awesome Lists containing this project
README
# This repository contains Nextcloud's workflow templates for libraries
## Setup a new template on your repository
When creating a new workflow on your repository, you will see templates originating from here.
## Auto-update repositories
For each template, you can propagate them on all the repos that use it.
1. Go into https://github.com/nextcloud-libraries/.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](https://github.com/orgs/nextcloud-libraries/repositories))
4. Wait for the actions to finish and see the checkout the pull requests
## Update workflows with a script
You can 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!
```sh
#!/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-libraries/.github.git "$temp"
# Update workflows
rsync -vr \
--existing \
--include='*/' \
--include='*.yml' \
--exclude='*' \
"$temp/workflow-templates/" \
./.github/workflows/
# Cleanup
rm -rf "$temp"
```