From c621d0a19332e1609ca0d1a1b835c9a149d8a949 Mon Sep 17 00:00:00 2001 From: Lincoln Wallace Date: Tue, 5 Dec 2023 08:21:18 -0300 Subject: [PATCH] refact: Requested improviments on PR for #IENG-869 Added separation lines and comentaries to improve redability Use output as snap name to don't leat hardcoded version or architecture. Signed-off-by: Lincoln Wallace --- .github/workflows/build-snap.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-snap.yml b/.github/workflows/build-snap.yml index 029f0f1..45be2dd 100644 --- a/.github/workflows/build-snap.yml +++ b/.github/workflows/build-snap.yml @@ -1,20 +1,27 @@ name: Snap Builder -run-name: ${{ github.actor }} is building the ${{ github.repository }} + on: push: branches: [ main ] pull_request: branches: [ main ] + # Allow manual trigger workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: + + # Checkout the code - uses: actions/checkout@v4 + + # Build the snap - uses: snapcore/action-build@v1 id: build + + # Upload builded artifact - uses: actions/upload-artifact@v3 with: - name: snap + name: ${{ steps.build.outputs.snap }} path: ${{ steps.build.outputs.snap }}