Update server styling #782
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors | |
# SPDX-License-Identifier: MIT | |
name: Update server styling | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 5 * * *" | |
jobs: | |
server-styling-update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download css | |
run: | | |
cd styleguide/assets | |
# Fix img css import | |
curl https://nextcloud.github.io/server/apps/theming/css/default.css | sed 's|/apps/theming/img|./img|g' > default.css | |
# Fix icons and img css import | |
curl https://nextcloud.github.io/server/core/css/server.css | sed 's|../../dist/icons.css|./icons.css|g' | sed 's|../img|./img|g' > server.css | |
curl https://nextcloud.github.io/server/dist/icons.css --output icons.css | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: ${{ secrets.COMMAND_BOT_PAT }} | |
commit-message: "chore(assets): Update styling from server" | |
committer: GitHub <[email protected]> | |
author: nextcloud-command <[email protected]> | |
signoff: true | |
branch: automated/noid/server-styling-update | |
title: Automated styling update from server | |
add-paths: styleguide/assets | |
body: | | |
Auto-generated update of our locally cached css styling from | |
* https://nextcloud.github.io/server/apps/theming/css/default.css | |
* https://nextcloud.github.io/server/core/css/server.css | |
* https://nextcloud.github.io/server/dist/icons.css | |
labels: | | |
dependencies | |
3. to review |