mirror of
https://github.com/nextcloud/server.git
synced 2026-11-25 15:16:20 +01:00
Bumps the github-actions group with 8 updates: | Package | From | To | | --- | --- | --- | | [github/codeql-action/init](https://github.com/github/codeql-action) | `4.38.1` | `4.39.1` | | [github/codeql-action/analyze](https://github.com/github/codeql-action) | `4.38.1` | `4.39.1` | | [nextcloud-libraries/parse-package-engines-action](https://github.com/nextcloud-libraries/parse-package-engines-action) | `0.1.0` | `0.2.0` | | [actions/setup-node](https://github.com/actions/setup-node) | `7.0.0` | `7.1.0` | | [LizardByte/actions/actions/setup_python](https://github.com/lizardbyte/actions) | `2026.909.30231` | `2026.928.123224` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `7.0.1` | `7.0.2` | | [github/codeql-action/upload-sarif](https://github.com/github/codeql-action) | `4.38.1` | `4.39.1` | | [skjnldsv/read-package-engines-version-actions](https://github.com/skjnldsv/read-package-engines-version-actions) | `3` | `4` | Updates `github/codeql-action/init` from 4.38.1 to 4.39.1 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/1c5b675653bb5c22dbe9b12b556ec555138e09fd...9b3254085494b55a0f7c4c2b3d2d52cc712ce370) Updates `github/codeql-action/analyze` from 4.38.1 to 4.39.1 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/1c5b675653bb5c22dbe9b12b556ec555138e09fd...9b3254085494b55a0f7c4c2b3d2d52cc712ce370) Updates `nextcloud-libraries/parse-package-engines-action` from 0.1.0 to 0.2.0 - [Release notes](https://github.com/nextcloud-libraries/parse-package-engines-action/releases) - [Commits](https://github.com/nextcloud-libraries/parse-package-engines-action/compare/v0.1.0...39fcc545a815c353dd0a3fd8fd2ef6e59fd02b92) Updates `actions/setup-node` from 7.0.0 to 7.1.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v7...949feb2413d6458794dcd2491c4babbbce0c15c1) Updates `LizardByte/actions/actions/setup_python` from 2026.909.30231 to 2026.928.123224 - [Release notes](https://github.com/lizardbyte/actions/releases) - [Commits](https://github.com/lizardbyte/actions/compare/39c468549cfb87ccb917e5e5342e18abc926dc48...28374bf43cc8b6ee88b9b8a3419b2ac7a6573906) Updates `actions/upload-artifact` from 7.0.1 to 7.0.2 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v7.0.1...cf430e030ddbb5b0abf93d22962f4752f3646cd9) Updates `github/codeql-action/upload-sarif` from 4.38.1 to 4.39.1 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/1c5b675653bb5c22dbe9b12b556ec555138e09fd...9b3254085494b55a0f7c4c2b3d2d52cc712ce370) Updates `skjnldsv/read-package-engines-version-actions` from 3 to 4 - [Release notes](https://github.com/skjnldsv/read-package-engines-version-actions/releases) - [Commits](https://github.com/skjnldsv/read-package-engines-version-actions/compare/06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4...06d6db44aa62f4609ba070f556ec24bc99fb85cb) --- updated-dependencies: - dependency-name: github/codeql-action/init dependency-version: 4.39.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: github/codeql-action/analyze dependency-version: 4.39.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: nextcloud-libraries/parse-package-engines-action dependency-version: 0.2.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/setup-node dependency-version: 7.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: LizardByte/actions/actions/setup_python dependency-version: 2026.928.123224 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/upload-artifact dependency-version: 7.0.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: github/codeql-action/upload-sarif dependency-version: 4.39.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: skjnldsv/read-package-engines-version-actions dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
86 lines
2.5 KiB
YAML
86 lines
2.5 KiB
YAML
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
name: Update Node dist
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
# implemented since 35, once branched off, add your stable branch here
|
|
- master
|
|
- stable35
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
concurrency:
|
|
group: update-node-dist-${{ github.head_ref || github.ref || github.run_id }}
|
|
|
|
jobs:
|
|
update-node-dist:
|
|
runs-on: ubuntu-latest-assets
|
|
environment: update-node-dist
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
# Needed to allow force push later
|
|
persist-credentials: true
|
|
token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
|
|
|
- name: Read package.json node and npm engines version
|
|
uses: skjnldsv/read-package-engines-version-actions@06d6db44aa62f4609ba070f556ec24bc99fb85cb # v4
|
|
id: versions
|
|
with:
|
|
fallbackNode: '^20'
|
|
fallbackNpm: '^9'
|
|
|
|
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
|
|
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
with:
|
|
node-version: ${{ steps.versions.outputs.nodeVersion }}
|
|
|
|
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
|
|
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
|
|
|
|
- name: Setup git
|
|
run: |
|
|
git config --local user.email "nextcloud-command@users.noreply.github.com"
|
|
git config --local user.name "nextcloud-command"
|
|
|
|
- name: Get last commit message if it was not a recompile
|
|
id: last_commit
|
|
run: |
|
|
{
|
|
echo 'MESSAGE<<EOF'
|
|
git log -1 --pretty=%s | grep -v '^chore(assets): recompile assets$' || test $? -eq 1
|
|
echo 'EOF'
|
|
} >> $GITHUB_OUTPUT
|
|
|
|
- name: Install dependencies & build
|
|
if: steps.last_commit.outputs.MESSAGE != ''
|
|
env:
|
|
CYPRESS_INSTALL_BINARY: 0
|
|
run: |
|
|
npm ci
|
|
npm run build --if-present
|
|
|
|
- name: Check webpack build changes
|
|
id: changes
|
|
continue-on-error: true
|
|
run: |
|
|
{
|
|
echo 'CHANGED<<EOF'
|
|
git status --porcelain
|
|
echo 'EOF'
|
|
} >> "$GITHUB_OUTPUT"
|
|
|
|
- name: Add and commit
|
|
if: steps.changes.outputs.CHANGED != ''
|
|
run: |
|
|
git add --force dist/ core/css/
|
|
git commit --signoff -m 'chore(assets): recompile assets'
|
|
git push origin ${GITHUB_HEAD_REF}
|