Skip to content

Commit

Permalink
Only sync files after successful CI workflow run
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospereira committed Feb 13, 2024
1 parent 2dcbfaa commit 74c15fb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/repo-files-sync.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name: Sync Files

on:
push:
branches: [ "main" ]
release:
types: [ "created", "published" ]
workflow_run:
types: [ completed ]
workflows: [ CI ]
branches: [ main ]

jobs:
sync:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
Expand Down

0 comments on commit 74c15fb

Please sign in to comment.