Skip to content

Commit

Permalink
Update screenshot-testing.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yceballost committed Aug 19, 2023
1 parent aa80bdf commit 72fb1d8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/screenshot-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ env:
FIGMA_ACCESS_TOKEN: ${{ secrets.FIGMA_ACCESS_TOKEN }}

jobs:
export-all:
generate-screenshots:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -45,13 +45,13 @@ jobs:
- name: Checkout branch or create new one
run: |
git fetch
if git branch -a | grep origin/import-figma-icons; then
git checkout import-figma-icons
if git branch -a | grep origin/generate-screenshots; then
git checkout generate-screenshots
else
git checkout -b import-figma-icons
git checkout -b generate-screenshots
fi
- name: screenshoting!
- name: Screenshoting!
run: figma_export png DOCUMENT_ID

- name: Commit & Push
Expand All @@ -60,12 +60,12 @@ jobs:
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Figma icons updated"
git push origin import-figma-icons
git push origin generate-screenshots
# - name: Create Pull-Request
# uses: repo-sync/pull-request@v2
# with:
# source_branch: import-figma-icons
# source_branch: generate-screenshots
# destination_branch: "production"
# pr_title: "Update Figma icons"
# pr_body: "
Expand Down

0 comments on commit 72fb1d8

Please sign in to comment.