diff --git a/.github/workflows/run-setup-script.yml b/.github/workflows/run-setup-script.yml index 4baa6b1..001d397 100644 --- a/.github/workflows/run-setup-script.yml +++ b/.github/workflows/run-setup-script.yml @@ -24,32 +24,39 @@ jobs: with: creds: ${{ secrets.AZURE_CREDENTIALS }} - - name: Get git info + - name: Setup environment id: vars shell: bash run: | echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + MD5_OUTPUT="$(echo $(date +%s) | md5sum | awk '{print $1}')" + echo "::set-output name=ENV_CODE::$(echo pr${MD5_OUTPUT:0:7})" - name: Install Azure Infrastructure run: | chars='@#$%&_+=' export POSTGRES_ADMIN_LOGIN_PASS=$({