Merge remote-tracking branch 'upstream/master' #274
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
# The Purpose of this workflow file is to enable us to automatically | |
# synchronize the staging repository with the latest commit | |
# of CATcher-org/CATcher. | |
name: Fetch Upstream Master to Staging | |
on: | |
push: | |
branches: [master] | |
jobs: | |
fetch_from_upstream: | |
if: ${{ github.repository == 'CATcher-org/CATcher' }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- name: Checkout Upstream | |
uses: actions/checkout@v2 | |
with: | |
repository: CATcher-org/CATcher-staging | |
ref: master | |
token: ${{ secrets.STAGING_TOKEN }} | |
fetch-depth: 0 | |
- name: Merge Upstream | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git remote add upstream https://github.com/CATcher-org/CATcher.git | |
git fetch upstream | |
git merge upstream/master --allow-unrelated-histories | |
git push origin master -f |