Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TimonLukas authored Jun 18, 2022
1 parent f708570 commit 841c193
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ inputs:
fallback:
description: "Fallback file if asset can't be found. Set to `false` to disable."
default: "index.html"
launch:
description: "On startup launch preferred browser pointing to this path. Set to `false` to disable."
default: "/"

runs:
using: "composite"
Expand All @@ -39,7 +42,13 @@ runs:
end
EOT
zip -qq "${{ steps.paths.outputs.executable }}" .init.lua
zip -qq "${{ steps.paths.outputs.executable }}" .init.lua
- if: ${{ inputs.launch != false }}
shell: bash
run: |
unzip -qq "${{ steps.paths.outputs.executable }}" .init.lua
echo "LaunchBrowser('${{ inputs.launch }}')" >> .init.lua
zip -qq "${{ steps.paths.outputs.executable }}" .init.lua
- run: zip -qq -r "${{ steps.paths.outputs.executable }}" ./**
shell: bash
working-directory: ${{ inputs.input }}

0 comments on commit 841c193

Please sign in to comment.