diff --git a/.github/workflows/test-installation.yml b/.github/workflows/test-installation.yml index f5f7ab079..28354e655 100644 --- a/.github/workflows/test-installation.yml +++ b/.github/workflows/test-installation.yml @@ -45,7 +45,7 @@ jobs: run: | cd $GITHUB_WORKSPACE/aws-encryption-sdk-net export BASE_VERSION=`grep '' Source/AWSEncryptionSDK.csproj | sed 's/.*\(.*\)<\/Version>/\1/'` - export UNIQUE_VERSION=$BASE_VERSION-`git rev-parse --short HEAD` + export UNIQUE_VERSION=$BASE_VERSION-`git rev-parse --short HEAD`-`date +%Y-%m-%d` echo "::set-output name=UNIQUE_VERSION::$UNIQUE_VERSION" echo "UNIQUE_VERSION=$UNIQUE_VERSION" >> $GITHUB_ENV - name: Build and pack @@ -70,6 +70,10 @@ jobs: id-token: write contents: read steps: + - name: Setup .NET Core SDK 3.1.x + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '3.1.x' - name: Configure AWS credentials for pulling from CA uses: aws-actions/configure-aws-credentials@v1 with: @@ -151,4 +155,4 @@ jobs: export UNIQUE_VERSION=${{ needs.push_to_code_artifact.outputs.UNIQUE_VERSION }} echo "UNIQUE_VERSION=$UNIQUE_VERSION" >> $GITHUB_ENV - name: CodeArtifact Purger - run: aws codeartifact delete-package-versions --domain github --repository dotnet-esdk --format nuget --package awsencryptionsdk --versions $UNIQUE_VERSION + run: aws codeartifact delete-package-versions --domain github --repository dotnet-esdk --format nuget --package awsencryptionsdk --versions "${{ needs.push_to_code_artifact.outputs.UNIQUE_VERSION }}"