1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-23 09:22:52 +02:00

Make sync to not run for github actions

This commit is contained in:
Kamran Ahmed
2025-08-20 14:24:21 +01:00
parent 704657cb36
commit cb7c13fd1b

View File

@@ -10,6 +10,7 @@ on:
jobs: jobs:
sync-on-changes: sync-on-changes:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.actor != 'github-actions[bot]' && github.actor != 'dependabot[bot]'
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@@ -63,4 +64,4 @@ jobs:
echo "Changed files: ${{ steps.changed-files.outputs.changed_files }}" echo "Changed files: ${{ steps.changed-files.outputs.changed_files }}"
# Run your script with the changed file paths # 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 }}