Skip to content

Commit

Permalink
lets test syncing
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdibha committed Nov 18, 2023
1 parent 45254bb commit 1c14c50
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 5 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/notionfolio-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Sync with Folio

on:
push:
branches:
- main # Change this to your main branch name

jobs:
sync:
runs-on: ubuntu-latest

steps:
- name: Checkout source repository
uses: actions/checkout@v2
with:
path: ./src/app

- name: Checkout destination repository
uses: actions/checkout@v2
with:
repository: mehdibha/notionfolio # Replace with the username and repository name
token: ${{ secrets.GITHUB_TOKEN }}
path: ./src/app/[domain]/foliotest

- name: Copy files to destination repository
run: |
cp -r ./src/app/* ./src/app/[domain]/foliotest
- name: Commit and push changes
run: |
cd ./folio
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git add .
git commit -m "Sync changes from ./src/app"
git push
- name: Create pull request
uses: peter-evans/create-pull-request@v3
with:
commit-message: "Sync changes from ./src/app"
title: "Sync changes from ./src/app"
branch: main # Change this to your main branch name
delete-branch: true
5 changes: 0 additions & 5 deletions src/app/api/auth/[...nextauth]/route.ts

This file was deleted.

1 comment on commit 1c14c50

@vercel
Copy link

@vercel vercel bot commented on 1c14c50 Nov 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.