mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-17 21:12:16 +01:00
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 7.0.11 to 8.0.0.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](22a9089034...98357b18bf)
---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
dependency-version: 8.0.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
124 lines
5 KiB
YAML
124 lines
5 KiB
YAML
# 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: Update nextcloud/ocp
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "5 2 * * 0"
|
|
|
|
permissions:
|
|
contents: read
|
|
issues: write
|
|
|
|
jobs:
|
|
update-nextcloud-ocp:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
branches: ['main', 'master', 'stable32', 'stable31', 'stable30']
|
|
|
|
name: update-nextcloud-ocp-${{ matrix.branches }}
|
|
|
|
steps:
|
|
- id: checkout
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
persist-credentials: false
|
|
ref: ${{ matrix.branches }}
|
|
submodules: true
|
|
continue-on-error: true
|
|
|
|
- name: Set up php8.2
|
|
if: steps.checkout.outcome == 'success'
|
|
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2.36.0
|
|
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@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
|
|
with:
|
|
token: ${{ secrets.COMMAND_BOT_PAT }}
|
|
commit-message: 'chore(dev-deps): Bump nextcloud/ocp package'
|
|
committer: GitHub <noreply@github.com>
|
|
author: nextcloud-command <nextcloud-command@users.noreply.github.com>
|
|
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
|