Skip to content

Commit

Permalink
Merge pull request #198 from adobecom/stage
Browse files Browse the repository at this point in the history
[Release] Stage to Main
  • Loading branch information
meganthecoder authored Apr 16, 2024
2 parents c1d7c1a + b7c4af2 commit b5bdcf5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/auto-merge-main-to-stage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: PRs to main
on:
pull_request:
branches: [main]
types: [closed]
jobs:
merge-main-to-stage:
if: github.event.pull_request.merged == true
timeout-minutes: 2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set Git config
run: |
git config user.email "github-actions@github.com"
git config user.name "github-actions"
- name: Merge main to stage
run: |
git fetch
git checkout stage
git pull
git merge --no-ff main -m "Auto-merge main to stage"
git push
2 changes: 1 addition & 1 deletion .github/workflows/graybox-sync-repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:

- name: Overwrite graybox repo files with latest from source repo
run: |
rsync -av --exclude='fstab.yaml' --exclude='.github' --exclude='.git' --exclude='.idea' --exclude='.husky' --exclude='.vscode' --exclude='tools/sidekick/config.json' ./ ../bacom-graybox/
rsync -av --exclude='fstab.yaml' --exclude='.github' --exclude='.kodiak' --exclude='.git' --exclude='.idea' --exclude='.husky' --exclude='.vscode' --exclude='tools/sidekick/config.json' ./ ../bacom-graybox/
- name: Commit and Push Changes to Graybox Repository
run: |
Expand Down

0 comments on commit b5bdcf5

Please sign in to comment.