Skip to content

Commit

Permalink
Fixing jobs' inputs and outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
f-galland committed Jan 9, 2024
1 parent fda25ca commit da008a8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ jobs:
with:
architecture: ${{ matrix.architecture }}
distribution: ${{ matrix.distribution }}
min: ${{ needs.build.outputs.artifact_name }}
9 changes: 1 addition & 8 deletions .github/workflows/r_assemble.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,10 @@ jobs:
contents: read
steps:
- uses: actions/checkout@v4
# The -min package's name is stored in artifacts/artifact_min_name.txt.

- name: Set min package name
id: get_min_name
run: |
echo "name=$(cat artifacts/artifact_min_name.txt)" >> $GITHUB_OUTPUT
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: ${{ steps.get_min_name.outputs.name }}
name: ${{ inputs.min }}
path: artifacts/dist

- name: Provision
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/r_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ on:
type: string
name:
type: string
outputs:
artifact_name:
description: "Returns the build artifact's filename"
value: ${{ jobs.r_build.outputs.get_name }}

jobs:
r_build:
Expand Down

0 comments on commit da008a8

Please sign in to comment.