Skip to content

Commit

Permalink
Fix release variable passing
Browse files Browse the repository at this point in the history
  • Loading branch information
me-and committed Jan 20, 2023
1 parent f8c6e5f commit db476f5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
name: Build
on:
- workflow_dispatch
- workflow_call
workflow_dispatch:
workflow_call:
outputs:
pv:
description: The $PV value from the cygport file
value: ${{ jobs.build-test.outputs.pv }}
cache-found:
description: Whether an existing build cache was found and used
value: ${{ jobs.build-test.outputs.cache-found }}
jobs:
build-test:
uses: cygporter/workflows/.github/workflows/build-test.yml@v1
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Prepare release

on:
workflow_dispatch:
inputs:
Expand All @@ -12,6 +13,7 @@ on:
required: false
default: false
type: boolean

workflow_call:
inputs:
release_tag:
Expand All @@ -24,8 +26,14 @@ on:
required: false
default: false
type: boolean
outputs:
release_tag:
description: Name of the release tag
value: ${{ jobs.prep-release.outputs.tag }}

permissions:
contents: write

jobs:
prep-release:
uses: cygporter/workflows/.github/workflows/prep-release.yml@v1
Expand Down

0 comments on commit db476f5

Please sign in to comment.