diff --git a/.github/workflows/sync-repo-to-database.yml b/.github/workflows/sync-repo-to-database.yml index 482e1aec7..48276f4d7 100644 --- a/.github/workflows/sync-repo-to-database.yml +++ b/.github/workflows/sync-repo-to-database.yml @@ -10,6 +10,7 @@ on: jobs: sync-on-changes: runs-on: ubuntu-latest + if: github.actor != 'github-actions[bot]' && github.actor != 'dependabot[bot]' steps: - uses: actions/checkout@v4 with: @@ -63,4 +64,4 @@ jobs: echo "Changed files: ${{ steps.changed-files.outputs.changed_files }}" # Run your script with the changed file paths - npm run sync:repo-to-database -- --files="${{ steps.changed-files.outputs.changed_files }}" --secret=${{ secrets.TOPIC_CONTENT_SYNC_SECRET }} + npm run sync:repo-to-database -- --files="${{ steps.changed-files.outputs.changed_files }}" --secret=${{ secrets.GH_SYNC_SECRET }}