mirror of
https://github.com/element-hq/ess-helm.git
synced 2026-11-24 11:01:33 -08:00
Bumps the minor-and-patches group with 2 updates: [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) and [docker/login-action](https://github.com/docker/login-action). Updates `astral-sh/setup-uv` from 8.2.0 to 8.3.2 - [Release notes](https://github.com/astral-sh/setup-uv/releases) - [Commits](https://github.com/astral-sh/setup-uv/compare/fac544c07dec837d0ccb6301d7b5580bf5edae39...11f9893b081a58869d3b5fccaea48c9e9e46f990) Updates `docker/login-action` from 4.3.0 to 4.4.0 - [Release notes](https://github.com/docker/login-action/releases) - [Commits](https://github.com/docker/login-action/compare/c99871dec2022cc055c062a10cc1a1310835ceb4...af1e73f918a031802d376d3c8bbc3fe56130a9b0) --- updated-dependencies: - dependency-name: astral-sh/setup-uv dependency-version: 8.3.2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-and-patches - dependency-name: docker/login-action dependency-version: 4.4.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-and-patches ... Signed-off-by: dependabot[bot] <[email protected]>
73 lines
2.1 KiB
YAML
73 lines
2.1 KiB
YAML
# Copyright 2024-2025 New Vector Ltd
|
|
# Copyright 2025-2026 Element Creations Ltd
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
name: Licensing & Copyright checks
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
- 'maintenance/*'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
reuse-licensing-and-copyright-checks:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
with:
|
|
persist-credentials: false
|
|
fetch-depth: 0
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
|
|
with:
|
|
enable-cache: true
|
|
activate-environment: true
|
|
|
|
- name: Set up UV environment
|
|
run: uv sync
|
|
|
|
- name: reuse-lint
|
|
run: |
|
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
reuse --version
|
|
reuse lint
|
|
|
|
- name: Generate SPDX
|
|
run: |
|
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
reuse --version
|
|
reuse spdx > "$RUNNER_TEMP/reuse.spdx"
|
|
|
|
- name: SPDX checks
|
|
run: |
|
|
./scripts/spdx_check_all_files.py "$RUNNER_TEMP/reuse.spdx"
|
|
|
|
# `reuse spdx` will coalesce multiple identical copyright headerts
|
|
if grep -Pzlr '(?s)Copyright \d{4}(-\d{4})? Element Creations Ltd\n.*Copyright \d{4}(-\d{4})? Element Creations Ltd' .; then
|
|
echo "Some files had more than 1 Element Creations Ltd header"
|
|
exit 1
|
|
fi
|
|
|
|
- name: Copyright dates
|
|
if: ${{ github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' }}
|
|
env:
|
|
BASE_REF: ${{ github.event.pull_request.base.sha }}
|
|
HEAD_REF: ${{ github.event.pull_request.head.sha }}
|
|
run: |
|
|
echo "Comparing $BASE_REF against current branch HEAD $(git rev-parse "$HEAD_REF")"
|
|
|
|
# Get the list of changed files
|
|
changed_files=$(git diff --diff-filter=rd --name-only "$BASE_REF...$HEAD_REF")
|
|
echo "Changed files to verify : $changed_files"
|
|
|
|
echo "$changed_files" | xargs ./scripts/spdx_check_changed_file.py "$RUNNER_TEMP/reuse.spdx"
|