-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,30 @@ | ||
name: Execute script | ||
inputs: | ||
script-name: | ||
description: "Build script to execute" | ||
type: string | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
# We must fetch at least the immediate parents so that if this is | ||
# a pull request then we can checkout the head. | ||
fetch-depth: 2 | ||
on: | ||
workflow_call: | ||
inputs: | ||
script-name: | ||
description: "Build script to execute" | ||
type: string | ||
required: true | ||
|
||
- name: Set up environment | ||
uses: michijs/.github/.github/workflows/runtime/setup.yml@main | ||
jobs: | ||
Run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
# We must fetch at least the immediate parents so that if this is | ||
# a pull request then we can checkout the head. | ||
fetch-depth: 2 | ||
|
||
- name: Install dependencies | ||
uses: michijs/.github/.github/workflows/runtime/install.yml@main | ||
- name: Set up environment | ||
uses: michijs/.github/.github/workflows/runtime/setup.yml@main | ||
|
||
- name: Execute script | ||
uses: michijs/.github/.github/workflows/runtime/run.yml@main | ||
with: | ||
script-name: ${{ inputs.script-name }} | ||
- name: Install dependencies | ||
uses: michijs/.github/.github/workflows/runtime/install.yml@main | ||
|
||
- name: Execute script | ||
uses: michijs/.github/.github/workflows/runtime/run.yml@main | ||
with: | ||
script-name: ${{ inputs.script-name }} |