Skip to content

Commit

Permalink
fix: repository_dispatch default value
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Chin <[email protected]>
  • Loading branch information
eallion committed Jan 14, 2025
1 parent cea43b7 commit 4d69971
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/build-x86-64-23.05.4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,24 @@ jobs:
- name: Set executable permissions
run: chmod +x ${{ github.workspace }}/x86-64/build.sh

- name: Set default values if inputs are not provided
run: |
if [ -z "${{ github.event.inputs.profile }}" ]; then
echo "profile=${{ github.event.inputs.profile.default || '1024' }}" >> $GITHUB_ENV
else
echo "profile=${{ github.event.inputs.profile }}" >> $GITHUB_ENV
fi
if [ -z "${{ github.event.inputs.include_docker }}" ]; then
echo "include_docker=${{ github.event.inputs.include_docker.default || 'no' }}" >> $GITHUB_ENV
else
echo "include_docker=${{ github.event.inputs.include_docker }}" >> $GITHUB_ENV
fi
- name: Build ImmortalWrt-x86-64-EFI
run: |
profiles="${{ github.event.inputs.profile }}"
include_docker="${{ github.event.inputs.include_docker }}"
profiles="${{ env.profile }}"
include_docker="${{ env.include_docker }}"
IFS=',' read -r -a profile_array <<< "$profiles"
Expand Down

0 comments on commit 4d69971

Please sign in to comment.