diff --git a/.github/workflows/notify_enterprise.yaml b/.github/workflows/notify_enterprise.yaml index c0e746f308..5efba7ac99 100644 --- a/.github/workflows/notify_enterprise.yaml +++ b/.github/workflows/notify_enterprise.yaml @@ -31,12 +31,15 @@ jobs: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: ${{ secrets.AWS_DEFAULT_REGION }} - - name: Get the version - id: get_version - run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + - name: Get the commit hash + id: get_commit_hash + run: | + COMMIT_HASH=${{ github.sha }} + echo "Commit hash: $COMMIT_HASH" + echo "::set-output name=COMMIT_HASH::$COMMIT_HASH" - name: Publish static assets to S3 run: | - aws s3 cp frontend/build s3://getunleash-static/unleash/${{ steps.get_version.outputs.VERSION }} --recursive + aws s3 cp frontend/build s3://getunleash-static/unleash/commits/${{ steps.get_version.outputs.COMMIT_HASH }} --recursive - name: Trigger sync uses: actions/github-script@v6 with: