Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove icons.json related step in github action #2358

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/generate-icon-changeset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Generate changeset and PR description based on changed icons

on:
push:
branches:
- icon-update-*
paths:
- packages/bezier-icons/icons/*

jobs:
generate-svg:
name: Generate changeset and PR description
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

- name: Git Config
run: |
git config --global user.email "[email protected]"
git config --global user.name "ch-builder"

- name: Get PR number
id: pr
run: echo "pull_request_number=$(gh pr view --json number -q .number || echo "")" >> $GITHUB_OUTPUT

- name: Add pr description
run: |
node packages/bezier-icons/scripts/add-pr-description.js ${{ secrets.PERSONAL_ACCESS_TOKEN }} ${{ steps.pr.outputs.pull_request_number }}

- name: Add changeset
run: |
node packages/bezier-icons/scripts/generate-changeset.js
git add .
git commit -m "chore(bezier-icons): add changeset"
79 changes: 0 additions & 79 deletions .github/workflows/generate-icon-files.yml

This file was deleted.

8 changes: 0 additions & 8 deletions packages/bezier-icons/scripts/generate-icon-files.js

This file was deleted.

This file was deleted.

This file was deleted.

Loading