Re-create branch for Figma tokens #1941
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
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@v4 | |
- name: Re-create branch | |
run: | | |
git checkout main | |
git checkout -b figma-tokens | |
git push --set-upstream origin figma-tokens |