Skip to content

Commit 8f42024

Browse files
committed
have nightly build call main build
1 parent 7cad67f commit 8f42024

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/main-build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ on:
66
- main
77
- "release/v*"
88
workflow_dispatch:
9+
workflow_call:
10+
inputs:
11+
ref:
12+
description: 'The branch, tag or SHA to checkout'
13+
required: false
14+
type: string
15+
default: ''
916

1017
env:
1118
AWS_DEFAULT_REGION: us-east-1
@@ -34,6 +41,8 @@ jobs:
3441
steps:
3542
- name: Checkout Contrib Repo @ SHA - ${{ github.sha }}
3643
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
44+
with:
45+
ref: ${{ inputs.ref || github.sha }}
3746

3847
- name: Get Node Distro Output
3948
id: node_output

.github/workflows/nightly-build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,14 @@ jobs:
7575
fi
7676
env:
7777
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78+
79+
build-and-test:
80+
needs: update-and-create-pr
81+
if: needs.update-and-create-pr.outputs.has_changes == 'true'
82+
uses: ./.github/workflows/main-build.yml
83+
secrets: inherit
84+
permissions:
85+
id-token: write
86+
contents: read
87+
with:
88+
ref: nightly-dependency-updates

0 commit comments

Comments
 (0)