From 84722674a500d227997fc68d3acdbb8496db1b2d Mon Sep 17 00:00:00 2001 From: ttionya Date: Tue, 9 Aug 2022 20:34:03 +0800 Subject: [PATCH] chore: skip sync when dependabot push branch --- .github/workflows/github-release.yml | 8 ++++++-- .github/workflows/schedule.yml | 10 +++++++--- .github/workflows/sync.yml | 11 ++++++++--- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml index ffc9544..014d124 100644 --- a/.github/workflows/github-release.yml +++ b/.github/workflows/github-release.yml @@ -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: diff --git a/.github/workflows/schedule.yml b/.github/workflows/schedule.yml index af40358..675e928 100644 --- a/.github/workflows/schedule.yml +++ b/.github/workflows/schedule.yml @@ -1,4 +1,4 @@ -name: 'schedule' +name: 'Schedule' on: schedule: @@ -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' diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index fccc4d9..894e954 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -1,4 +1,4 @@ -name: 'sync' +name: 'Sync' on: push: @@ -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'