Skip to content

Commit

Permalink
fix outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
joshschmelzle authored Feb 1, 2025
1 parent b160dc0 commit 2dc91a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
jobs:
build-prep:
runs-on: ubuntu-24.04-arm
outputs:
include_packagecloud_dev: ${{ steps.set_vars.outputs.include_packagecloud_dev }}
steps:
- name: Check if inputs choice exists
run: |
Expand All @@ -23,12 +25,13 @@ jobs:
fi
echo "REPOS=$CHOICE" >> $GITHUB_ENV
- name: Set repos choice variable
id: set_vars
run: |
echo "Repos choice: $REPOS"
if [ "$REPOS" = "both" ]; then
echo 'include_packagecloud_dev=1' >> $GITHUB_OUTPUT
echo "include_packagecloud_dev=1" >> $GITHUB_OUTPUT
else
echo 'include_packagecloud_dev=0' >> $GITHUB_OUTPUT
echo "include_packagecloud_dev=0" >> $GITHUB_OUTPUT
fi
build-image:
runs-on: ubuntu-24.04-arm
Expand Down
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/bash -e

include_packagecloud_dev="${include_packagecloud_dev:-1}"

while [ $# -gt 0 ]; do
case "$1" in
--include_packagecloud_dev=*)
Expand All @@ -15,6 +13,8 @@ while [ $# -gt 0 ]; do
esac
done

include_packagecloud_dev="${include_packagecloud_dev:-1}"

# shellcheck disable=SC2119
run_sub_stage()
{
Expand Down

0 comments on commit 2dc91a1

Please sign in to comment.