Skip to content

Commit

Permalink
workflows: build: add workflow call
Browse files Browse the repository at this point in the history
Allow the build workflow to be called.

This enables calling the build workflow from internal/private
repositories.

Signed-off-by: Ryno Swart <[email protected]>
  • Loading branch information
ryno-swart-corigine committed Mar 10, 2024
1 parent b7ac68d commit 4b2790f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ on:
# Schedule run at midnight daily
schedule:
- cron: '0 0 * * *'
# External calling
workflow_call:
inputs:
target_ref:
description: >
SHA, Branch, or Tag to build.
type: string
required: true

env:
DOWNLOAD: ".download"
Expand Down Expand Up @@ -42,6 +50,8 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
ref: '${{ inputs.target_ref }}'

- name: Set HWE Environment (Ubuntu 20.04/22.04)
if: matrix.release.hwe != ''
Expand Down Expand Up @@ -138,6 +148,8 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
ref: '${{ inputs.target_ref }}'

- name: Set Download Environment
env:
Expand Down Expand Up @@ -340,6 +352,8 @@ jobs:

- name: Check out repository
uses: actions/checkout@v4
with:
ref: '${{ inputs.target_ref }}'

- name: Filter latest BCLinux stream kernel
if: startsWith(matrix.release.name, 'el8')
Expand Down Expand Up @@ -448,6 +462,8 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
ref: '${{ inputs.target_ref }}'

- name: Set Environment (Release)
if: startsWith(matrix.release.name, 'net') != true
Expand Down Expand Up @@ -561,6 +577,8 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
ref: '${{ inputs.target_ref }}'

- name: Set Environment (Release)
run: |
Expand Down Expand Up @@ -667,6 +685,8 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
ref: '${{ inputs.target_ref }}'

- name: Set Environment (Release)
run: |
Expand Down

0 comments on commit 4b2790f

Please sign in to comment.