Skip to content

chore: update changelog (#1579) #25

chore: update changelog (#1579)

chore: update changelog (#1579) #25

name: "Pull icons from ocis/web"
# Queue this workflow so it only runs one at a time for this specific branch,
# avoiding race conditions when commiting changes
concurrency:
group: push-queue-${{ github.ref }}
cancel-in-progress: false # Wait in line instead of cancelling
# This workflow is triggered on pushes to the repository.
on:
workflow_dispatch:
push:
branches:
- "release/*"
permissions:
contents: write
jobs:
pull-icons:
runs-on: macos-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
submodules: true
- name: Build MakeTVG
run: |
swift -v
swiftc tools/MakeTVG/main.swift -o /tmp/MakeTVG
- name: Clone ocis repo
run: |
git clone "https://github.com/owncloud/ocis/" /tmp/ocis-git
- name: Run MakeTVG
run: |
/tmp/MakeTVG \
--makefile img/make.json \
--icon-ts /tmp/ocis-git/web/packages/web-pkg/src/helpers/resource/icon.ts \
--web-theme /tmp/ocis-git/services/web/assets/themes/owncloud/theme.json \
--web-theme-filter-names "Light Theme,Dark Theme" \
--color-yaml /tmp/ocis-git/web/packages/design-system/src/tokens/ods/color.yaml \
--legacy-input img/icons \
--input /tmp/ocis-git/web/packages/design-system/src/assets/icons \
--file-filter only-matches \
--icon-map img/tvg-icons/icon-map.json \
--output img/tvg-icons
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
client-id: ${{ secrets.TRANSLATION_APP_ID }}
private-key: ${{ secrets.TRANSLATION_APP_PRIVATE_KEY }}
- name: Commit and sign modified files via API
uses: ./.github/actions/verified-api-commit
with:
commit-message: "[icons] updated icons from ocis and ocis web"
retry-on-conflict: 'true'
files: |
img/tvg-icons/