Skip to content

Commit

Permalink
SKA-625: repo-sync-action update
Browse files Browse the repository at this point in the history
  • Loading branch information
VJean-ThomasMasse authored and GitHub Enterprise committed Jan 23, 2025
1 parent 1924662 commit 3542463
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/repo-sync-public.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
name: Repo sync

on:
workflow_run:
workflows: ["Build the SIL Kit FMU Importer (.NET 6) (internal)"]
types:
- completed

push:
branches:
- 'main'
jobs:
sync_main_branch:
name: Sync branch to remote public GitHub
runs-on:
- Linux
- Small
runs-on:
group: shared-runners
labels:
- Linux
- Small
environment: repo-sync-action/public-github
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -25,4 +24,4 @@ jobs:
app-id: ${{ secrets.APP_ID }}
remote-repo-url: ${{ secrets.REMOTE_REPO_URL }}
remote-branch: ${{ secrets.REMOTE_BRANCH }}
local-branch: origin/main
local-branch: origin/main

0 comments on commit 3542463

Please sign in to comment.