Skip to content

Commit

Permalink
lp-snap-builder action v3 (#14638)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomponline authored Dec 11, 2024
2 parents edcc404 + 8173c2c commit 37db5e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/actions/lp-snap-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,9 @@ runs:
# Depends on Go being available which is the case in the GitHub Actions environment
set -eux
go install github.com/canonical/lxd-ci/lxd-snapcraft@latest
# Update system PATH to add ~/go/bin if needed
echo "${PATH}"
if ! echo "${PATH}" | grep -F go/bin; then
echo "$(go env GOPATH)/bin" >> "${GITHUB_PATH}"
fi
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,7 @@ jobs:
- name: Trigger Launchpad snap build
run: |
set -eux
echo "${PATH}"
localRev="$(git rev-parse HEAD)"
cd ~/"${PACKAGE}-pkg-snap-lp"
lxd-snapcraft -package "${PACKAGE}" -set-version "git-${localRev:0:7}" -set-source-commit "${localRev}"
Expand Down

0 comments on commit 37db5e2

Please sign in to comment.