Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Add action that re-creates `figma-tokens` branch when it gets deleted (#781)

Roman Pominov9ff254bd2aa8
diff --git a/.github/workflows/re-create-figma-tokens-branch.yml b/.github/workflows/re-create-figma-tokens-branch.yml
new file mode 100644
index 0000000000..4954d4a698
--- /dev/null
+++ b/.github/workflows/re-create-figma-tokens-branch.yml
@@ -0,0 +1,23 @@
+name: Re-create branch for Figma tokens
+
+on: delete
+
+permissions:
+ contents: write
+
+jobs:
+ main:
+ runs-on: ubuntu-latest
+
+ # run if figma-tokens was deleted
+ if: ${{ github.event.ref == 'figma-tokens'}}
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+
+ - name: Re-create branch
+ run: |
+ git checkout main
+ git checkout -b figma-tokens
+ git push --set-upstream origin figma-tokens