Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .github/index.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,18 @@ build = baseWorkflow

prb = baseWorkflow

main = new {
main {
on {
workflow_dispatch {
inputs {
["source_run"] {
type = "string"
required = false
description = "The source GitHub Action workflow run triggering this build"
}
}
}
}
jobs {
["build-and-publish-docs"] = publishJob
}
Expand Down Expand Up @@ -69,6 +80,13 @@ local publishJob: Workflow.Job = new {
contents = "write"
}
steps {
new {
name = "Triggered by"
`if` = "inputs.source_run != null"
run = """
echo "Triggered by workflow in repo: ${{ inputs.source_run }}" >> $GITHUB_STEP_SUMMARY
"""
}
new Common.Checkout {
with {
`fetch-depth` = 0
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ name: Build (main)
- main
tags-ignore:
- '**'
workflow_dispatch:
inputs:
source_run:
description: The source GitHub Action workflow run triggering this build
required: false
type: string
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
Expand All @@ -20,6 +26,9 @@ jobs:
contents: write
runs-on: ubuntu-latest
steps:
- name: Triggered by
if: inputs.source_run != null
run: 'echo "Triggered by workflow in repo: ${{ inputs.source_run }}" >> $GITHUB_STEP_SUMMARY'
- uses: actions/checkout@v5
with:
fetch-depth: 0
Expand Down