Skip to content

chore!: do not export mixins anymore #153

chore!: do not export mixins anymore

chore!: do not export mixins anymore #153

Workflow file for this run

# SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: MIT
name: Changelog
on: pull_request
permissions:
contents: read
concurrency:
group: node-changelog-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
changes:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
outputs:
src: ${{ steps.changes.outputs.src}}
steps:
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: changes
continue-on-error: true
with:
filters: |
src:
- 'CHANGELOG.md'
lint:
runs-on: ubuntu-latest
needs: changes
if: needs.changes.outputs.src != 'false'
name: Lint changelog
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Set up node
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version-file: 'package.json'
- name: Install dependencies and lint
run: |
npm ci
npm run prerelease:format-changelog
- name: Check CHANGELOG changes
run: |
bash -c "[[ ! \"`git status --porcelain `\" ]] || (echo 'Please adjust the style of the CHANGELOG and commit it. Run \"npm run prerelease:format-changelog\"' && exit 1)"
- name: Show changes on failure
if: failure()
run: |
git status
git diff CHANGELOG.md
exit 1 # make it red to grab attention
summary:
permissions:
contents: none
runs-on: ubuntu-latest
needs: [changes, lint]
if: always()
name: Changelog lint summary
steps:
- name: Summary status
run: if ${{ needs.changes.outputs.src != 'false' && needs.lint.result != 'success' }}; then exit 1; fi