Skip to content

Commit

Permalink
Use reusable workflow in sync_sites_branch
Browse files Browse the repository at this point in the history
  • Loading branch information
nmanu1 committed Dec 21, 2022
1 parent 79732b1 commit 39e316a
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/sync-sites-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,12 @@ on:
- main

jobs:
sync-branches:
runs-on: ubuntu-latest
name: Syncing branches
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: devmasx/merge-branch@v1.4.0
with:
type: now
from_branch: ${{ github.event.repository.default_branch }}
target_branch: storybook-site
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: devmasx/merge-branch@v1.4.0
with:
type: now
from_branch: ${{ github.event.repository.default_branch }}
target_branch: test-site
github_token: ${{ secrets.GITHUB_TOKEN }}
call_sync_branches:
strategy:
matrix:
target_branch: ["storybook-site", "test-site"]
uses: yext/slapshot-reusable-workflows/.github/workflows/sync_default_branch.yml@v1
with:
target_branch: ${{ matrix.target_branch }}
secrets:
caller_github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 39e316a

Please sign in to comment.