mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-23 17:34:44 +02:00
Make sync to not run for github actions
This commit is contained in:
3
.github/workflows/sync-repo-to-database.yml
vendored
3
.github/workflows/sync-repo-to-database.yml
vendored
@@ -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 }}
|
||||||
|
Reference in New Issue
Block a user