From 87f164a902a0f7114120ce1f2abe3d89c62d962f Mon Sep 17 00:00:00 2001 From: maximo tejeda Date: Thu, 15 Aug 2024 14:35:15 -0400 Subject: [PATCH] ADD sha to name --- .github/workflows/ci.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cd73c42..574bae1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,4 +1,6 @@ name: Ci Actions worker +env: + on: push: branches: [master] @@ -35,21 +37,21 @@ jobs: - name: create file run: | mkdir version - echo "v0.0.1" > version/version.txt + echo "v0.0.1" > version/version-${{ github.sha }}.txt ls ${{ github.workspace}} - name: upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: version.zip + name: version-@${{ github.sha }}.zip path: version download-artifact: needs: [create-artifact] runs-on: ubuntu-latest steps: - name: download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: version.zip + name: version-@{{ github.sha }}.zip - name: list files run: | ls ${{ github.workspace }}