Skip to content

Commit

Permalink
Merge pull request #660 from nextcloud/master
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Oct 21, 2021
2 parents 5012e3a + 1d33648 commit 9cfd066
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/command-rebase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 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: Rebase command

on:
issue_comment:
types: created

jobs:
rebase:
runs-on: ubuntu-latest

# On pull requests and if the comment starts with `/rebase`
if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/rebase')

steps:
- name: Add reaction on start
uses: peter-evans/create-or-update-comment@v1
with:
token: ${{ secrets.COMMAND_BOT_PAT }}
repository: ${{ github.event.repository.full_name }}
comment-id: ${{ github.event.comment.id }}
reaction-type: "+1"

- name: Checkout the latest code
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.COMMAND_BOT_PAT }}

- name: Automatic Rebase
uses: cirrus-actions/rebase@1.5
env:
GITHUB_TOKEN: ${{ secrets.COMMAND_BOT_PAT }}

- name: Add reaction on failure
uses: peter-evans/create-or-update-comment@v1
if: failure()
with:
token: ${{ secrets.COMMAND_BOT_PAT }}
repository: ${{ github.event.repository.full_name }}
comment-id: ${{ github.event.comment.id }}
reaction-type: "-1"
17 changes: 17 additions & 0 deletions config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,23 @@
],

'beta' => [
'23' => [
'100' => [
'latest' => '23.0.0 beta 1',
'internalVersion' => '23.0.0.4',
'downloadUrl' => 'https://download.nextcloud.com/server/prereleases/nextcloud-23.0.0beta1.zip',
'web' => 'https://docs.nextcloud.com/server/23/admin_manual/maintenance/upgrade.html',
'eol' => false,
'minPHPVersion' => '7.3',
'signature' => 'wtQOE5x06jHV7lq7dqk/5/f/1QYavf34XpCG0INPwHv3cWKEiMlZ9+t/IZSzZ/bl
I5Kr4JSDH95ReMyBL8gyec0WRfeIK8Vc8NCH/5TOPitb0Ljlri0hQ8euZSH7ySoP
oc4XfIkkP/DcWgLmSyD5YlxSLXYnK1iRu+jlqyeDDMabTzBuXoS4pgnUh9zJWUCO
rjolP8egixusw88weShEIJ/2TDIz0qs3DDWIkGUZI2eDDEr5C9uj9M7b79qQXI+5
yYun0MSFo6dZ1jpjLdHapvKjUShNzpVZrGKK5unI1f9+iTnBXnc03O7C1ZezMBWt
mMW8t1Z673Z3UENCvq8A/Q==',
],
],

'22' => [
'100' => [
'latest' => '22.2.0',
Expand Down
21 changes: 21 additions & 0 deletions tests/integration/features/beta.feature
Original file line number Diff line number Diff line change
Expand Up @@ -536,3 +536,24 @@ Feature: Testing the update scenario of beta releases
AUTy0ZHZXAt9LIGI9YmqBv90CgmW5xmBrt/qqw0f/M4A4C1BCDwh4DI2Ylh5OS+R
igCw9M1FBIhT4+LRdFBupQ==
"""

Scenario: Updating the Nextcloud 23.0.0 on the beta channel
Given There is a release with channel "beta"
And The received version is "23.0.0.0"
And The received PHP version is "7.4.0"
And the installation mtime is "11"
When The request is sent
Then The response is non-empty
And Update to version "23.0.0.4" is available
And URL to download is "https://download.nextcloud.com/server/prereleases/nextcloud-23.0.0beta1.zip"
And URL to documentation is "https://docs.nextcloud.com/server/23/admin_manual/maintenance/upgrade.html"
And EOL is set to "0"
And The signature is
"""
wtQOE5x06jHV7lq7dqk/5/f/1QYavf34XpCG0INPwHv3cWKEiMlZ9+t/IZSzZ/bl
I5Kr4JSDH95ReMyBL8gyec0WRfeIK8Vc8NCH/5TOPitb0Ljlri0hQ8euZSH7ySoP
oc4XfIkkP/DcWgLmSyD5YlxSLXYnK1iRu+jlqyeDDMabTzBuXoS4pgnUh9zJWUCO
rjolP8egixusw88weShEIJ/2TDIz0qs3DDWIkGUZI2eDDEr5C9uj9M7b79qQXI+5
yYun0MSFo6dZ1jpjLdHapvKjUShNzpVZrGKK5unI1f9+iTnBXnc03O7C1ZezMBWt
mMW8t1Z673Z3UENCvq8A/Q==
"""

0 comments on commit 9cfd066

Please sign in to comment.