Merge pull request #2162 from betterscientificsoftware/curfman-patch-1 #250
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: Sync main to preview | |
# When there's a push on main, we want to reflect it on preview too. | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
sync-preview: | |
if: github.repository_owner == 'betterscientificsoftware' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Merge main -> preview | |
uses: devmasx/[email protected] | |
with: | |
type: now | |
head_to_merge: ${{ github.ref }} | |
from_branch: main | |
target_branch: preview | |
github_token: ${{ secrets.GITHUB_TOKEN }} |