Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 3 additions & 2 deletions .github/actions/get-polls-version/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SPDX-FileCopyrightText: 2022 Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
name: Read polls version from info.xml
description: 'Get app version from info.xml and compare it to tag name'
inputs:
skip-check:
description: Do not check tag against version
Expand All @@ -21,7 +22,7 @@ runs:
steps:
- name: Get app version from appinfo/info.xml
id: appinfo
uses: mavrosxristoforos/get-xml-info@2.0
uses: mavrosxristoforos/get-xml-info@afaa5058ead44cfaff92c6a861b46dd7a8929f60 # v2.0
with:
xml-file: 'appinfo/info.xml'
xpath: '//info//version'
Expand All @@ -33,7 +34,7 @@ runs:

- name: Compare versions
if: ${{ !inputs.skip-version && format('v{0}', steps.appinfo.outputs.info) != steps.gettag.outputs.VERSION }}
uses: actions/github-script@v6
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
with:
script: |
core.setFailed('App version ${{ format('v{0}', steps.appinfo.outputs.info) }} is not equal to tag name ${{ steps.gettag.outputs.VERSION }}!')
5 changes: 3 additions & 2 deletions .github/actions/setup-composer/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SPDX-FileCopyrightText: 2022 Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
name: Setup composer and PHP
description: 'Setup PHP environment and install composer dependencies with caching'
inputs:
php-version:
description: 'PHP version (default: 8.2)'
Expand Down Expand Up @@ -34,7 +35,7 @@ runs:
using: 'composite'
steps:
- name: Use or setup caching composer packages (${{ inputs.mode }})
uses: actions/cache@v4
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # version 5.0.3
id: cache-composer
env:
cache-name: cache-composer-${{ inputs.mode }}
Expand All @@ -47,7 +48,7 @@ runs:
${{ runner.os }}-

- name: Set up php ${{ inputs.php-version }}
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2.36.0
with:
php-version: ${{ inputs.php-version }}
tools: ${{ inputs.php-tools }}
Expand Down
5 changes: 3 additions & 2 deletions .github/actions/setup-node/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SPDX-FileCopyrightText: 2022 Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
name: Setup node and dependencies
description: 'Setup node environment and install npm dependencies'
inputs:
node-version:
required: false
Expand All @@ -16,7 +17,7 @@ runs:
using: 'composite'
steps:
- name: Use or setup caching npm modules
uses: actions/cache@v4
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # version 5.0.3
id: cache-modules
env:
cache-name: cache-node-modules
Expand All @@ -29,7 +30,7 @@ runs:
${{ runner.os }}-

- name: Set up node ${{ inputs.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: ${{ inputs.node-version }}

Expand Down
7 changes: 4 additions & 3 deletions .github/actions/setup-server/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SPDX-FileCopyrightText: 2022 Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
name: Checkout and setup server
description: 'Checkout Nextcloud server and app, setup PHP and install dependencies'
inputs:
server-version:
required: false
Expand Down Expand Up @@ -55,7 +56,7 @@ runs:
using: 'composite'
steps:
- name: Checkout server ${{ inputs.server-version }}
uses: actions/checkout@v4
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
path: ${{ inputs.server-path }}
repository: nextcloud/server
Expand All @@ -70,12 +71,12 @@ runs:
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1

- name: Checkout ${{ inputs.app-name }}
uses: actions/checkout@v4
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
path: ${{ inputs.server-path }}/apps/${{ inputs.app-name }}

- name: Set up php ${{ inputs.php-version }}
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2.36.0
with:
php-version: ${{ inputs.php-version }}
tools: ${{ inputs.php-tools }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ jobs:
runs-on: ubuntu-latest
steps:
# Default github action approve
- uses: hmarr/auto-approve-action@v4
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # 4.0.0
if: github.ref == 'refs/heads/master' &&
(github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]')
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

# Nextcloud bot approve and merge request
- uses: ahmadnassri/action-dependabot-auto-merge@v2
- uses: ahmadnassri/action-dependabot-auto-merge@45fc124d949b19b6b8bf6645b6c9d55f4f9ac61a # 2.6.6
if: github.ref == 'refs/heads/master' &&
(github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]')
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
uses: github/codeql-action/init@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 #4.32.0
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v4
uses: github/codeql-action/autobuild@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 #4.32.0
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
uses: github/codeql-action/analyze@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 #4.32.0
4 changes: 2 additions & 2 deletions .github/workflows/lock-closed-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
name: 'Lock Issues'

on:
on:
schedule:
- cron: '2 4 * * *'

Expand All @@ -12,7 +12,7 @@ jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v6
- uses: dessant/lock-threads@7266a7ce5c1df01b1c6db85bf8cd86c737dadbe7 #v6.0.0
with:
github-token: ${{ github.token }}
issue-inactive-days: '31'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish_alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ jobs:
- name: Extract release notes
if: success()
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v3
uses: ffurrer2/extract-release-notes@202313ec7461b6b9e401996714484690ab1ae105 # 3.0.0
with:
prerelease: true

- name: Publish pre-release ${{ steps.appinfo.outputs.app-version }}
if: success()
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # 2.5.0
with:
body: "# Changelog for the upcoming release (preview)\n ${{ steps.extract-release-notes.outputs.release_notes }} "
prerelease: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish_beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ jobs:
- name: Extract release notes
if: success()
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v3
uses: ffurrer2/extract-release-notes@202313ec7461b6b9e401996714484690ab1ae105 # 3.0.0
with:
prerelease: true

- name: Publish pre-release ${{ steps.appinfo.outputs.app-version }}
if: success()
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # 2.5.0
with:
body: "# Changelog for the upcoming release (preview)\n ${{ steps.extract-release-notes.outputs.release_notes }} "
prerelease: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ jobs:
- name: Extract release notes
if: success()
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v3
uses: ffurrer2/extract-release-notes@202313ec7461b6b9e401996714484690ab1ae105 # 3.0.0

- name: Draft Release
if: success()
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # 2.5.0
with:
body: "# Changelog ${{ steps.appinfo.outputs.app-version }} \n ${{ steps.extract-release-notes.outputs.release_notes }} "
prerelease: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v10
- uses: actions/stale@997185467fa4f803885201cee163a9f38240193d # 10.1.1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is marked as stale, because it had no activity in the last 30 days. It will be closed in 5 days.'
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SPDX-FileCopyrightText: 2016 Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later

.env
# build dirs
/assets
/css/*.map
Expand Down