Skip to content

Commit 055d04a

Browse files
ci: sync workflows with nightly pipeline
1 parent c88ad49 commit 055d04a

File tree

6 files changed

+29
-69
lines changed

6 files changed

+29
-69
lines changed

.github/workflows/nightly-package-update.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/nightly-pipeline.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,21 @@ on:
1010
- cron: '0 3 * * *'
1111

1212
jobs:
13-
DocumentationUpdate:
14-
name: Nightly Documentation Update
15-
uses: 51Degrees/common-ci/.github/workflows/nightly-documentation-update.yml@main
13+
PackageUpdate:
14+
# This is intentionally disabled to prevent npm updates, otherwise it is
15+
# causing an endless dependency update loop for fiftyone.* packages in this
16+
# repository.
17+
# TODO: Don't forget to add this job to PullRequests' needs when enabling back.
18+
if: false
19+
name: Nightly Package Update
20+
uses: 51Degrees/common-ci/.github/workflows/nightly-package-update.yml@main
1621
with:
1722
repo-name: ${{ github.event.repository.name }}
1823
org-name: ${{ github.event.repository.owner.login }}
1924
dryrun: ${{ inputs.dryrun || false }}
2025
secrets:
2126
token: ${{ secrets.ACCESS_TOKEN }}
2227

23-
# TODO: Don't forget to add this job to PullRequests' needs when uncommenting
24-
# PackageUpdate:
25-
# name: Nightly Package Update
26-
# uses: 51Degrees/common-ci/.github/workflows/nightly-package-update.yml@main
27-
# with:
28-
# repo-name: ${{ github.event.repository.name }}
29-
# org-name: ${{ github.event.repository.owner.login }}
30-
# dryrun: ${{ inputs.dryrun || false }}
31-
# secrets:
32-
# token: ${{ secrets.ACCESS_TOKEN }}
33-
3428
SubmoduleUpdate:
3529
name: Nightly Submodule Update
3630
uses: 51Degrees/common-ci/.github/workflows/nightly-submodule-update.yml@main

.github/workflows/nightly-documentation-update.yml renamed to .github/workflows/package-update.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
name: Nightly Documentation Update
1+
name: Package Update
22

33
on:
44
workflow_dispatch:
55
inputs:
66
dryrun:
7-
default: false
87
type: boolean
9-
description: Dry Run
10-
schedule:
11-
- cron: '30 3 * * *'
8+
default: false
129

1310
jobs:
14-
Nightly_Documentation_Update:
15-
uses: 51Degrees/common-ci/.github/workflows/nightly-documentation-update.yml@main
11+
PackageUpdate:
12+
name: Package Update
13+
uses: 51Degrees/common-ci/.github/workflows/nightly-package-update.yml@main
1614
with:
1715
repo-name: ${{ github.event.repository.name }}
1816
org-name: ${{ github.event.repository.owner.login }}

.github/workflows/nightly-prs-to-main.yml renamed to .github/workflows/publish.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
1-
name: Nightly PRs to Main
1+
name: Publish
22

33
on:
44
workflow_dispatch:
55
inputs:
66
dryrun:
7-
default: false
87
type: boolean
9-
description: Dry Run
10-
workflow_run:
11-
workflows: [Nightly Submodule Update]
12-
types: [completed]
8+
default: false
139

1410
jobs:
15-
Nightly_PRs_to_Main:
16-
uses: 51Degrees/common-ci/.github/workflows/nightly-prs-to-main.yml@main
11+
Publish:
12+
name: Publish
13+
uses: 51Degrees/common-ci/.github/workflows/nightly-publish.yml@main
1714
with:
1815
repo-name: ${{ github.event.repository.name }}
1916
org-name: ${{ github.event.repository.owner.login }}
@@ -31,3 +28,4 @@ jobs:
3128
TestBrowserResourceKey: ${{ secrets.ACCEPTCH_BROWSER_KEY }}
3229
TestNoSetHeaderResourceKey: ${{ secrets.ACCEPTCH_NONE_KEY }}
3330
TestLicenseKey: ${{ secrets.DEVICE_DETECTION_KEY }}
31+
NPMAuthToken: ${{ secrets.NPM_AUTH_TOKEN}}
Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
1-
name: Nightly Publish Main
1+
name: Pull Requests
22

33
on:
44
workflow_dispatch:
55
inputs:
66
dryrun:
7-
default: false
87
type: boolean
9-
description: Dry Run
10-
workflow_run:
11-
workflows: [Nightly PRs to Main]
12-
types: [completed]
8+
default: false
139

1410
jobs:
15-
Nightly_Publish_Main:
16-
uses: 51Degrees/common-ci/.github/workflows/nightly-publish-main.yml@main
11+
PullRequests:
12+
name: Pull Requests
13+
uses: 51Degrees/common-ci/.github/workflows/nightly-pull-requests.yml@main
1714
with:
1815
repo-name: ${{ github.event.repository.name }}
1916
org-name: ${{ github.event.repository.owner.login }}
2017
dryrun: ${{ inputs.dryrun || false }}
21-
build-platform: ubuntu-latest
18+
cache-assets: true
2219
secrets:
2320
token: ${{ secrets.ACCESS_TOKEN }}
2421
DeviceDetection: ${{ secrets.DEVICE_DETECTION_KEY }}
@@ -31,4 +28,3 @@ jobs:
3128
TestBrowserResourceKey: ${{ secrets.ACCEPTCH_BROWSER_KEY }}
3229
TestNoSetHeaderResourceKey: ${{ secrets.ACCEPTCH_NONE_KEY }}
3330
TestLicenseKey: ${{ secrets.DEVICE_DETECTION_KEY }}
34-
NPMAuthToken: ${{ secrets.NPM_AUTH_TOKEN}}

.github/workflows/nightly-submodule-update.yml renamed to .github/workflows/submodule-update.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
name: Nightly Submodule Update
1+
name: Submodule Update
22

33
on:
44
workflow_dispatch:
55
inputs:
66
dryrun:
7-
default: false
87
type: boolean
9-
description: Dry Run
10-
schedule:
11-
- cron: '0 2 * * *'
8+
default: false
129

1310
jobs:
14-
Nightly_Submodule_Update:
11+
SubmoduleUpdate:
12+
name: Submodule Update
1513
uses: 51Degrees/common-ci/.github/workflows/nightly-submodule-update.yml@main
1614
with:
1715
repo-name: ${{ github.event.repository.name }}

0 commit comments

Comments
 (0)