chore(deps): update canonical/setup-lxd action to v0.1.2 #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build rock on PR | |
on: | |
workflow_dispatch: {} | |
pull_request: | |
branches: | |
- main | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Determine any rockcraft.yaml changed in the PR | |
id: changed-files | |
uses: tj-actions/changed-files@v44 | |
with: | |
files: "./rockcraft.yaml" | |
- name: Setup LXD | |
if: steps.changed-files.outputs.any_changed | |
uses: canonical/[email protected] | |
with: | |
channel: latest/stable | |
- name: Install dependencies | |
if: steps.changed-files.outputs.any_changed | |
run: | | |
sudo snap install --classic rockcraft | |
- name: Build ROCK | |
if: steps.changed-files.outputs.any_changed | |
run: | | |
rockcraft pack --verbose |