-
Notifications
You must be signed in to change notification settings - Fork 471
31 lines (30 loc) · 1.35 KB
/
auto-update-icons.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
name: 🤖 Auto update bundled & used icons
on:
pull_request:
workflow_dispatch:
jobs:
bundling:
if: ${{ !contains(github.head_ref , 'release/') }}
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- name: Copy flags from design tokens icons
run: |
rm -rf ./projects/icons/src/flags && mkdir -p ./projects/icons/src/flags
cp -R ./node_modules/@taiga-ui/design-tokens/icons/flags/* ./projects/icons/src/flags
npx prettier ./projects/icons/src/flags --write
- run: |
npx nx prebuild icons
npx nx build icons
npx prettier ./projects/icons/src/* --write
npx ts-node ./scripts/generate-used-icons.ts
npx eslint ./projects/cdk/constants/used-icons.ts --fix || echo "no file matching"
npx eslint ./projects/demo/used-icons.ts --fix || echo "no file matching"
npx prettier ./projects/demo/used-icons.ts --write || echo "no file matching"
npx prettier ./projects/cdk/constants/used-icons.ts --write || echo "no file matching"
- uses: taiga-family/ci/actions/auto/[email protected]
with:
message: icons have changed
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}