-
Notifications
You must be signed in to change notification settings - Fork 90
45 lines (39 loc) · 1.67 KB
/
server-styling-update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 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