Skip to content

Commit

Permalink
Merge pull request #9 from unkcpz/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
unkcpz authored Feb 14, 2024
2 parents 14d9cb7 + 65a7960 commit 70a5abf
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/sync-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: sync-staging

on:
push:
branches:
- main

jobs:
# after main updated (merge from staging), sync staging to main
sync-staging:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Configure Git
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email ""
- name: Update Test Branch
run: |
git checkout main
git fetch origin
git checkout staging
git pull
git merge origin/main
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}

0 comments on commit 70a5abf

Please sign in to comment.