-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
22 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,33 @@ | ||
name: Figma to Sketch | ||
name: Release design-ui-kit | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
paths: '*.fig' | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
fig2sketch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: italia/[email protected] | ||
with: | ||
files: 'UI-Kit-Italia.fig' | ||
output_files: 'UI-Kit-Italia.sketch' | ||
- uses: EndBug/add-and-commit@v9 | ||
fetch-depth: 0 | ||
ref: main | ||
- name: Fixup git permissions | ||
shell: bash | ||
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
- name: git config | ||
run: | | ||
git config user.name "${GITHUB_ACTOR}" | ||
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
- uses: italia/[email protected] # https://github.com/italia/figma-to-sketch-action | ||
with: | ||
author_name: Bot | ||
author_email: [email protected] | ||
message: 🤖 update converted Sketch file | ||
# Pull before committing, so that HEAD is updated if there | ||
# have been any commits while the converter was running. | ||
# | ||
# `true` would be more elegant once https://github.com/EndBug/add-and-commit/issues/498 | ||
# is fixed | ||
pull: " " | ||
files: 'UI-Kit-Italia.fig' # File di input .fig (Figma) separati da `|` | ||
output_files: 'UI-Kit-Italia.sketch' # File di output .sketch (Sketch) risultanti separati da `|` | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: '*.fig,*.sketch' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
allowUpdates: true | ||
makeLatest: true | ||
omitBodyDuringUpdate: true |
Binary file not shown.
Binary file not shown.