Skip to content

Commit

Permalink
fix repos choice parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
joshschmelzle committed Jan 28, 2025
1 parent 8ee0f9e commit 6299ea8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,17 @@ jobs:
build-prep:
runs-on: ubuntu-24.04-arm
steps:
- id: set-repos
- name: Check if inputs choice exists
run: |
if [ "${{ github.events.inputs.repos }}" = "both" ]; then
if [ -z "${{ github.events.inputs.repos }}" ]; then
echo "Error: inputs choice not found"
exit 1
fi
echo "REPOS=${{ github.events.inputs.repos }}" >> $GITHUB_ENV
- name: Set repos choice variable
run: |
echo "Repos choice: $REPOS"
if [ "$REPOS" = "both" ]; then
echo 'INCLUDE_PACKAGECLOUD_DEV=1' >> $GITHUB_OUTPUT
else
echo 'INCLUDE_PACKAGECLOUD_DEV=0' >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 6299ea8

Please sign in to comment.