Skip to content

Commit

Permalink
fix(icon-workflow): succeed if no icons changed (#1805)
Browse files Browse the repository at this point in the history
Relates to #939

To not fail icon import workflow/pipeline when nothing changed, see
[this successful workflow
run](https://github.com/SchwarzIT/onyx/actions/runs/10593460712)
  • Loading branch information
larsrickert authored Aug 28, 2024
1 parent 28bf3f6 commit df3fd53
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/import-figma-icons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,15 @@ jobs:

- name: Generate changeset
run: |
git add src/assets
git add .
pnpm run generate:changeset
working-directory: packages/icons

# needed to prevent creating empty PR when nothing but the formatting changed
- name: Format with prettier
run: pnpm prettier --write src/metadata.json
working-directory: packages/icons

- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
Expand Down

0 comments on commit df3fd53

Please sign in to comment.