Skip to content
Skip to content
nextcloud
/
.github
Code
Issues 6
Pull requests 6
Actions
Projects
Wiki
Security
Insights
Files
t
.github
profile
screenshots
workflow-templates
appstore-build-publish.properties.json
appstore-build-publish.svg
appstore-build-publish.yml
block-merge-eol.properties.json
block-merge-eol.svg
block-merge-eol.yml
block-merge-freeze.properties.json
block-merge-freeze.svg
block-merge-freeze.yml
block-unconventional-commits.properties.json
block-unconventional-commits.svg
block-unconventional-commits.yml
command-compile.properties.json
command-compile.svg
command-compile.yml
cypress.properties.json
cypress.svg
cypress.yml
dependabot-approve-merge.properties.json
dependabot-approve-merge.svg
dependabot-approve-merge.yml
documentation.properties.json
documentation.svg
documentation.yml
fixup.properties.json
fixup.svg
fixup.yml
lint-eslint.properties.json
lint-eslint.svg
lint-eslint.yml
lint-info-xml.properties.json
lint-info-xml.svg
lint-info-xml.yml
lint-php-cs.properties.json
lint-php-cs.yml
lint-php.properties.json
lint-php.svg
lint-php.yml
lint-stylelint.properties.json
lint-stylelint.svg
lint-stylelint.yml
node-test.properties.json
node-test.svg
node-test.yml
node.properties.json
node.svg
node.yml
npm-audit-fix.properties.json
npm-audit-fix.svg
npm-audit-fix.yml
npm-publish.properties.json
npm-publish.svg
npm-publish.yml
openapi.properties.json
openapi.svg
openapi.yml
phpunit-mariadb.properties.json
phpunit-mariadb.yml
phpunit-mysql.properties.json
phpunit-mysql.yml
phpunit-oci.properties.json
phpunit-oci.yml
phpunit-pgsql.properties.json
phpunit-pgsql.yml
phpunit-sqlite.properties.json
phpunit-sqlite.yml
phpunit.svg
pr-feedback.properties.json
pr-feedback.svg
pr-feedback.yml
psalm-matrix.properties.json
psalm-matrix.yml
psalm.properties.json
psalm.svg
psalm.yml
renovate-approve-merge.yml
update-nextcloud-ocp-approve-merge.properties.json
update-nextcloud-ocp-approve-merge.yml
update-nextcloud-ocp-matrix.properties.json
update-nextcloud-ocp-matrix.yml
update-nextcloud-ocp.properties.json
update-nextcloud-ocp.svg
update-nextcloud-ocp.yml
.editorconfig
CONTRIBUTING.md
README.md
SECURITY.md
Breadcrumbs
.github/workflow-templates
/update-nextcloud-ocp.yml
Latest commit
dependabot[bot]
dependabot[bot]
chore(deps): Bump shivammathur/setup-php in /workflow-templates

Check failure on line 125 in .github/workflows/update-nextcloud-ocp.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/update-nextcloud-ocp.yml

Invalid workflow file

You have an error in your yaml syntax on line 125
3f306bc
·
History
File metadata and controls
116 lines (99 loc) · 4.75 KB
# 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
name: Update nextcloud/ocp
on:
workflow_dispatch:
schedule:
- cron: "5 2 * * 0"
jobs:
update-nextcloud-ocp:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
branches: ['main', 'master', 'stable28', 'stable27', 'stable26']
name: update-nextcloud-ocp-${{ matrix.branches }}
steps:
- id: checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ matrix.branches }}
submodules: true
continue-on-error: true
- name: Set up php8.2
if: steps.checkout.outcome == 'success'
uses: shivammathur/setup-php@a4e22b60bbb9c1021113f2860347b0759f66fe5d # v2
with:
php-version: 8.2
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
coverage: none
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Read codeowners
if: steps.checkout.outcome == 'success'
id: codeowners
run: |
grep '/appinfo/info.xml' .github/CODEOWNERS | cut -f 2- -d ' ' | xargs | awk '{ print "codeowners="$0 }' >> $GITHUB_OUTPUT
continue-on-error: true
- name: Composer install
if: steps.checkout.outcome == 'success'
run: composer install
- name: Composer update nextcloud/ocp
id: update_branch
if: ${{ steps.checkout.outcome == 'success' && matrix.branches != 'main' }}
run: composer require --dev nextcloud/ocp:dev-${{ matrix.branches }}
- name: Raise on issue on failure
uses: dacbd/create-issue-action@cdb57ab6ff8862aa09fee2be6ba77a59581921c2 # v2.0.0
if: ${{ steps.checkout.outcome == 'success' && failure() && steps.update_branch.conclusion == 'failure' }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: Failed to update nextcloud/ocp package on branch ${{ matrix.branches }}
body: Please check the output of the GitHub action and manually resolve the issues<br>${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}<br>${{ steps.codeowners.outputs.codeowners }}
- name: Composer update nextcloud/ocp
id: update_main
if: ${{ steps.checkout.outcome == 'success' && matrix.branches == 'main' }}
run: composer require --dev nextcloud/ocp:dev-master
- name: Raise on issue on failure
uses: dacbd/create-issue-action@cdb57ab6ff8862aa09fee2be6ba77a59581921c2 # v2.0.0
if: ${{ steps.checkout.outcome == 'success' && failure() && steps.update_main.conclusion == 'failure' }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: Failed to update nextcloud/ocp package on branch ${{ matrix.branches }}
body: Please check the output of the GitHub action and manually resolve the issues<br>${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}<br>${{ steps.codeowners.outputs.codeowners }}
- name: Reset checkout 3rdparty
if: steps.checkout.outcome == 'success'
run: |
git clean -f 3rdparty
git checkout 3rdparty
continue-on-error: true
- name: Reset checkout vendor
if: steps.checkout.outcome == 'success'
run: |
git clean -f vendor
git checkout vendor
continue-on-error: true
- name: Reset checkout vendor-bin
if: steps.checkout.outcome == 'success'
run: |
git clean -f vendor-bin
git checkout vendor-bin
continue-on-error: true
- name: Create Pull Request
if: steps.checkout.outcome == 'success'
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc # v6.0.1
with:
token: ${{ secrets.COMMAND_BOT_PAT }}
commit-message: "chore(dev-deps): Bump nextcloud/ocp package"
committer: GitHub <[email protected]>
author: nextcloud-command <[email protected]>
signoff: true
branch: automated/noid/${{ matrix.branches }}-update-nextcloud-ocp
title: "[${{ matrix.branches }}] Update nextcloud/ocp dependency"
body: |
Auto-generated update of [nextcloud/ocp](https://github.com/nextcloud-deps/ocp/) dependency
labels: |
dependencies
3. to review
.github/workflow-templates/update-nextcloud-ocp.yml at master · nextcloud/.github