From bd24438319a58117a4447938e5934e816e2987d7 Mon Sep 17 00:00:00 2001 From: Luigi Freitas Cruz Date: Mon, 24 Feb 2020 04:31:31 -0300 Subject: [PATCH] Fix actions. --- .github/workflows/release.yml | 9 +++++++-- .github/workflows/validate.yml | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 63ef42e..d2ca485 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,15 +21,20 @@ jobs: run: | docker system prune -af docker system prune --volumes -f - docker container stop $(docker container ls -aq) - docker container rm $(docker container ls -aq) docker image prune -af + docker container stop $(docker container ls -aq) || true + docker container rm $(docker container ls -aq) || true - name: Build project id: builder working-directory: ${{ env.working-directory }} run: | bash build-docker.sh echo ::set-output name=filename::$(ls deploy/*.tar.xz | xargs -n 1 basename) + - name: Fix Permissions + id: fix_perm_filename + run: | + chmod a+rw ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }} + echo ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }} - name: Create Release id: create_release uses: actions/create-release@v1 diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 360e175..7a66b51 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -18,15 +18,20 @@ jobs: run: | docker system prune -af docker system prune --volumes -f - docker container stop $(docker container ls -aq) - docker container rm $(docker container ls -aq) docker image prune -af + docker container stop $(docker container ls -aq) || true + docker container rm $(docker container ls -aq) || true - name: Build project id: builder working-directory: ${{ env.working-directory }} run: | bash build-docker.sh echo ::set-output name=filename::$(ls deploy/*.tar.xz | xargs -n 1 basename) + - name: Fix Permissions + id: fix_perm_filename + run: | + chmod a+rw ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }} + echo ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }} - uses: actions/upload-artifact@v1 with: name: ${{ steps.builder.outputs.filename }}