Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
5be4779
build(deps): bump nextcloud-libraries/parse-package-engines-action
dependabot[bot] Oct 19, 2026
af3a73c
Merge pull request #820 from nextcloud/dependabot/github_actions/work…
nickvergessen Oct 19, 2026
3b2ff4b
chore: add 'kristian-zendato' to non-community usernames
skjnldsv Oct 20, 2026
316395f
Merge pull request #821 from nextcloud/skjnldsv/kristian-zendato
skjnldsv Oct 20, 2026
aa31839
fix(sync-workflow-templates): sync from the .github repo of the same …
Antreesy Oct 21, 2026
2a7824c
feat(dispatch-workflow): reapply workflow patches like the sync workflow
Antreesy Oct 21, 2026
ee49b63
Merge pull request #823 from nextcloud/fix/noid/sync-workflow-templat…
susnux Oct 21, 2026
de8a60a
Merge pull request #822 from nextcloud/feat/noid/dispatch-apply-patches
nickvergessen Oct 22, 2026
e2d2cf0
fix(nextcloud-ocp): Don't use hardcoded PHP to update nextcloud/ocp
nickvergessen Oct 23, 2026
ef68ff4
ci(deps): bump zizmorcore/zizmor-action in /.github/workflows
dependabot[bot] Oct 24, 2026
d17a172
Merge pull request #825 from nextcloud/dependabot/github_actions/dot-…
nickvergessen Oct 24, 2026
79168bb
Merge pull request #824 from nextcloud/bugfix/noid/no-hard-coded-php
nickvergessen Oct 26, 2026
91c4942
chore: Update non-community-usernames.txt
nickvergessen Oct 27, 2026
87216f9
Merge pull request #826 from nextcloud/nickvergessen-patch-1
nickvergessen Oct 27, 2026
7e63a77
fix: Add 'madbob' to non-community usernames list
hamza221 Oct 27, 2026
807f558
Merge pull request #827 from nextcloud/hamza221-patch-1
nickvergessen Oct 28, 2026
cf48300
ci(deps): bump zizmorcore/zizmor-action in /.github/workflows
dependabot[bot] Oct 31, 2026
7e33091
Update non-community-usernames.txt
nickvergessen Oct 31, 2026
a6c0a54
Merge pull request #829 from nextcloud/dependabot/github_actions/dot-…
nickvergessen Oct 31, 2026
c9f77df
chore: merge updated from Nextcloud organization
nextcloud-command Nov 1, 2026
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
28 changes: 27 additions & 1 deletion .github/workflows/dispatch-workflow-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ jobs:

- name: Copy all workflow templates
run: |
echo 'SUMMARY<<EOF' >> $GITHUB_ENV
draft_only=0
for workflow in ./source/workflow-templates/*.yml; do
if [ -f "$workflow" ]; then
filename=$(basename "$workflow")
Expand All @@ -73,18 +75,42 @@ jobs:
# Only copy if the file exists in the target repository
if [ -f "$target_file" ]; then
echo "Updating existing workflow: $filename"
echo "- 🆙 Updated $filename" >> $GITHUB_ENV
cp "$workflow" "$target_file"

# Apply patch if one exists
if [ -f "$target_file.patch" ]; then
echo "🩹 Applying patch"
cd ./target
set +e
patch -p1 < ".github/workflows/$filename.patch"
patch_worked=$?
set -e
cd -
if [[ "$patch_worked" == "0" ]]; then
echo " - Patch applied" >> $GITHUB_ENV
else
echo " - [ ] ❌ Patch failed" >> $GITHUB_ENV
draft_only=1
fi
fi
else
echo "Skipping $filename (does not exist in target repository)"
fi
fi
done
echo 'EOF' >> $GITHUB_ENV
echo "DRAFT_ONLY=${draft_only}" >> $GITHUB_ENV

- name: Create Pull Request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
body: 'Automated update of all workflow templates from https://github.com/${{ github.repository }} triggered by ${{ github.actor }}'
body: |
Automated update of all workflow templates from https://github.com/${{ github.repository }} triggered by ${{ github.actor }}
${{ env.SUMMARY }}
branch: 'feat/workflow-auto-update-all-templates-${{ github.event.inputs.branch }}'
draft: ${{ env.DRAFT_ONLY == 1 }}
add-paths: .github/workflows/*.yml
commit-message: 'ci: update all workflow templates from organization template repository'
committer: Nextcloud bot <bot@nextcloud.com>
author: Nextcloud bot <bot@nextcloud.com>
Expand Down
33 changes: 31 additions & 2 deletions .github/workflows/dispatch-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,43 @@ jobs:

- name: Copy workflow # zizmor: ignore[template-injection]
if: steps.check_file_existence.outputs.files_exists == 'true'
run: cp './source/workflow-templates/${{ github.event.inputs.name }}' ./target/.github/workflows
run: |
echo 'SUMMARY<<EOF' >> $GITHUB_ENV
draft_only=0
filename='${{ github.event.inputs.name }}'
target_file="./target/.github/workflows/$filename"
echo "- 🆙 Updated $filename" >> $GITHUB_ENV
cp "./source/workflow-templates/$filename" "$target_file"

# Apply patch if one exists
if [ -f "$target_file.patch" ]; then
echo "🩹 Applying patch"
cd ./target
set +e
patch -p1 < ".github/workflows/$filename.patch"
patch_worked=$?
set -e
cd -
if [[ "$patch_worked" == "0" ]]; then
echo " - Patch applied" >> $GITHUB_ENV
else
echo " - [ ] ❌ Patch failed" >> $GITHUB_ENV
draft_only=1
fi
fi
echo 'EOF' >> $GITHUB_ENV
echo "DRAFT_ONLY=${draft_only}" >> $GITHUB_ENV

- name: Create Pull Request
if: steps.check_file_existence.outputs.files_exists == 'true'
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
body: 'Automated update of the ${{ github.event.inputs.name }} workflow from https://github.com/${{ github.repository }} triggered by ${{ github.actor }}'
body: |
Automated update of the ${{ github.event.inputs.name }} workflow from https://github.com/${{ github.repository }} triggered by ${{ github.actor }}
${{ env.SUMMARY }}
branch: 'feat/workflow-auto-update-${{ github.event.inputs.name }}'
draft: ${{ env.DRAFT_ONLY == 1 }}
add-paths: .github/workflows/*.yml
commit-message: 'ci: update ${{ github.event.inputs.name }} workflow from template'
committer: Nextcloud bot <bot@nextcloud.com>
author: Nextcloud bot <bot@nextcloud.com>
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint-yaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ jobs:
line-length: warning

- name: Run zizmor 🌈 on actions
uses: zizmorcore/zizmor-action@cc914d7f3750a2d13d75c7f184a1060aa0e9d482 # v0.6.4
uses: zizmorcore/zizmor-action@53290badfa369cb0bf7ad16342cb62c2fa47ac7b # v0.8.0
with:
inputs: '.github/workflows/*.yml'
advanced-security: false
annotations: true
min-severity: 'medium'

- name: Run zizmor 🌈 on workflow-templates
uses: zizmorcore/zizmor-action@cc914d7f3750a2d13d75c7f184a1060aa0e9d482 # v0.6.4
uses: zizmorcore/zizmor-action@53290badfa369cb0bf7ad16342cb62c2fa47ac7b # v0.8.0
with:
inputs: 'workflow-templates/*.yml'
advanced-security: false
Expand Down
6 changes: 3 additions & 3 deletions workflow-templates/sync-workflow-templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
with:
persist-credentials: false
path: source
repository: nextcloud/.github
repository: ${{ github.repository_owner }}/.github

- name: Checkout app
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
echo "ℹ️ Locked version: $locked_version"
echo "ℹ️ Current version: $new_version"
echo "🆙 Updating existing workflow: $filename"
echo "- 🆙 Updated [$filename](https://github.com/nextcloud/.github/commits/master/workflow-templates/$filename)" >> $GITHUB_ENV
echo "- 🆙 Updated [$filename](https://github.com/${GITHUB_REPOSITORY_OWNER}/.github/commits/HEAD/workflow-templates/$filename)" >> $GITHUB_ENV

cp "$workflow" "$target_file"

Expand Down Expand Up @@ -160,7 +160,7 @@ jobs:
draft: ${{ env.DRAFT_ONLY == 1 }}
add-paths: .github/workflows/*.yml,.github/actions-lock.txt
body: |
Automated update of all workflow templates from [nextcloud/.github](https://github.com/nextcloud/.github)
Automated update of all workflow templates from [${{ github.repository_owner }}/.github](https://github.com/${{ github.repository_owner }}/.github)
${{ env.SUMMARY }}
labels: |
dependencies
Expand Down
Loading