Skip to content

Commit

Permalink
chore: allow empty effective version
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobmoellerdev committed Nov 12, 2024
1 parent 38d2b5d commit 233a973
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,17 @@ jobs:
- name: CTF
run: |
cd components/${{ matrix.component }}
PATH=$PATH:$(go env GOPATH)/bin \
CTF_TYPE=${{ env.CTF_TYPE }} \
EFFECTIVE_VERSION=${{ inputs.effective-version }} \
PLATFORMS=${{ env.PLATFORMS }} \
IMAGE_PLATFORMS=${{ env.IMAGE_PLATFORMS }} \
make ctf descriptor describe
ARGS="PATH=$PATH:$(go env GOPATH)/bin CTF_TYPE=${{ env.CTF_TYPE }}"
if [ -n "${{ inputs.effective-version }}" ]; then
ARGS="$ARGS EFFECTIVE_VERSION=${{ inputs.effective-version }}"
fi
if [ -n "${{ env.PLATFORMS }}" ]; then
ARGS="$ARGS PLATFORMS=${{ env.PLATFORMS }}"
fi
if [ -n "${{ env.IMAGE_PLATFORMS }}" ]; then
ARGS="$ARGS IMAGE_PLATFORMS=${{ env.IMAGE_PLATFORMS }}"
fi
$ARGS make ctf descriptor describe
- name: Upload CTF
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 233a973

Please sign in to comment.