-
Notifications
You must be signed in to change notification settings - Fork 466
42 lines (40 loc) · 1.45 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
32
33
34
35
36
37
38
39
40
41
42
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: actions/[email protected]
with:
persist-credentials: false
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- name: Lucide icons
run: |
npx nx prebuild icons
npx nx build icons
- name: Material icons
run: |
npx nx prebuild icons-material
npx nx build icons-material
- name: FontAwesome icons
run: |
npx nx prebuild icons-fontawesome
npx nx build icons-fontawesome
- run: |
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]
if: env.SUPPORT_AUTO_PUSH
with:
message: icons have changed
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true