Skip to content

Commit

Permalink
Use reusable workflow in sync_sites_branch (#349)
Browse files Browse the repository at this point in the history
Update the `sync_sites_branch` workflow to use the new reusable workflow.

J=SLAP-2507
TEST=manual

Test on a forked repo and see that a commit to `main` triggers a merge commit to the `storybook-site` and `test-site` branches.
  • Loading branch information
nmanu1 committed Dec 21, 2022
1 parent 79732b1 commit 3aeb9be
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 3aeb9be

Please sign in to comment.