Skip to content

Commit 4a3dae4

Browse files
committed
Add sync job for delete events and update build.yml for OS naming
1 parent b9b658f commit 4a3dae4

File tree

2 files changed

+44
-5
lines changed

2 files changed

+44
-5
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@ name: Build
22
on:
33
push:
44
pull_request:
5-
delete:
6-
workflow_dispatch:
75

86
jobs:
97
build:
108
name: "Build on ${{ matrix.os }}"
119
strategy:
1210
fail-fast: false
1311
matrix:
14-
os: [ macos-latest, windows-latest, ubuntu-24.04 ]
12+
os: [ macOS, Windows, ubuntu-24.04 ]
1513
runs-on: ${{ matrix.os }}
1614
steps:
1715
- name: Checkout
@@ -28,6 +26,7 @@ jobs:
2826
version: vcs
2927
build: official
3028
token: ${{ secrets.DLTK }}
29+
3130
sync:
3231
needs: ["build"]
3332
runs-on: [self-hosted, macOS, ARM64]
@@ -36,8 +35,18 @@ jobs:
3635
- uses: actions/checkout@v4
3736
with:
3837
fetch-depth: 0
39-
lfs: true
40-
- uses: wangchucheng/[email protected]
38+
lfs: true
39+
40+
- name: Get Internal Sync action
41+
uses: actions/checkout@v4
42+
with:
43+
repository: 4d/gitlabsync-action
44+
ref: main
45+
path: .github/workflows/external/sync
46+
token: ${{ secrets.CI_GIT_SYNC }}
47+
48+
- id: Sync
49+
uses: ./.github/workflows/external/sync/
4150
with:
4251
target-url: ${{ secrets.TARGET_URL }}
4352
target-username: ${{ secrets.TARGET_USERNAME }}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Delete
2+
3+
on:
4+
delete:
5+
6+
7+
jobs:
8+
sync:
9+
runs-on: [self-hosted, macOS, ARM64]
10+
name: Git Repo Sync
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
lfs: true
16+
17+
- name: Get Internal Sync action
18+
uses: actions/checkout@v4
19+
with:
20+
repository: 4d/gitlabsync-action
21+
ref: main
22+
path: .github/workflows/external/sync
23+
token: ${{ secrets.CI_GIT_SYNC }}
24+
25+
- id: Sync
26+
uses: ./.github/workflows/external/sync/
27+
with:
28+
target-url: ${{ secrets.TARGET_URL }}
29+
target-username: ${{ secrets.TARGET_USERNAME }}
30+
target-token: ${{ secrets.TARGET_TOKEN }}

0 commit comments

Comments
 (0)