Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0e8eb86

Browse files
Add sync workflow to SpringBootVulExploit on Thu Jun 1 09:35:42 CEST 2023
1 parent 1a3da1f commit 0e8eb86

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎.github/workflows/sync.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Your GitHub Actions workflow
22
name: Sync Repositories
33

4-
on: [push]
4+
on:
5+
push:
6+
branches: [ main ]
57

68
jobs:
79
sync:
@@ -12,13 +14,13 @@ jobs:
1214
with:
1315
repository: 'LandGrey/SpringBootVulExploit'
1416
token: ${{ secrets.YOUR_GITHUB_TOKEN }}
15-
path: 'src_repo'
17+
path: 'SpringBootVulExploit'
1618

1719
- name: Sync Repositories
1820
run: |
19-
rsync -a --delete src_repo/ .
21+
rsync -a --delete ./SpringBootVulExploit/ .
2022
git config user.name 'davidfortytwo'
2123
git config user.email 'null'
2224
git add .
23-
git commit -m "Sync with source repo"
25+
git diff-index --quiet HEAD || git commit -m "Sync with source repo"
2426
git push

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /