Skip to content

Commit

Permalink
chore: skip sync when dependabot push branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ttionya committed Aug 9, 2022
1 parent e3a5793 commit 8472267
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ jobs:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/create-release@v1
-
name: Checkout
uses: actions/checkout@v3
-
name: Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'schedule'
name: 'Schedule'

on:
schedule:
Expand All @@ -8,10 +8,14 @@ jobs:
gitee:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ttionya/Repository-Sync-Hub@v1
-
name: Sync
uses: ttionya/Repository-Sync-Hub@v1
with:
target_repository: 'https://gitee.com/ttionya/vaultwarden-backup.git'
http_access_name: 'ttionya'
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'sync'
name: 'Sync'

on:
push:
Expand All @@ -7,11 +7,16 @@ on:
jobs:
gitee:
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- uses: actions/checkout@v3
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ttionya/Repository-Sync-Hub@v1
-
name: Sync
uses: ttionya/Repository-Sync-Hub@v1
with:
target_repository: 'https://gitee.com/ttionya/vaultwarden-backup.git'
http_access_name: 'ttionya'
Expand Down

0 comments on commit 8472267

Please sign in to comment.