Skip to content

Commit

Permalink
Merge pull request #8 from mr-cal/inputs
Browse files Browse the repository at this point in the history
action: fix inputs for workflows
  • Loading branch information
barrettj12 committed May 12, 2023
2 parents ea57509 + f26cab3 commit af495f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ jobs:
- name: Setup LXD
uses: ./
with:
channel: 5.0/stable
# use a channel that is not the default on ubuntu-latest
channel: 4.0/stable

- name: Check LXD version
shell: bash
run: |
[[ $(lxd version) == 5.0* ]]
[[ $(lxd version) == 4.0* ]]
- name: Launch container
run: |
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ runs:
steps:

- name: Install LXD if not present
if: "${{ github.event.inputs.channel == '' }}"
if: "${{ inputs.channel == '' }}"
shell: bash
run: |
if ! snap info lxd | grep "installed"; then
sudo snap install lxd
fi
- name: Install/refresh LXD snap
if: "${{ github.event.inputs.channel != '' }}"
if: "${{ inputs.channel != '' }}"
shell: bash
run: |
set -x
Expand Down

0 comments on commit af495f2

Please sign in to comment.