-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,6 @@ on: | |
types: [closed] | ||
branches: | ||
- main | ||
actions: | ||
- closed | ||
|
||
jobs: | ||
sync: | ||
|
@@ -17,7 +15,7 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Clone Repository B | ||
- name: Clone Website Repo | ||
run: | | ||
git clone [email protected]:vacp2p/rfc-website.git | ||
cd rfc-website | ||
|
@@ -29,13 +27,13 @@ jobs: | |
run: | | ||
echo "::set-output name=files::$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})" | ||
- name: Copy changed files to Website | ||
- name: Copy changed files to Website Repo | ||
run: | | ||
for file in ${{ steps.changed_files.outputs.files }}; do | ||
cp --parents "$file" rfc-website/ | ||
done | ||
- name: Push changes to Repository B | ||
- name: Push changes to Website Repo | ||
run: | | ||
cd rfc-website | ||
git add . | ||
|