From d09300d407d391c6ed226655a4198306b74f9e1b Mon Sep 17 00:00:00 2001 From: Vivek Lakshmanan Date: Tue, 1 Dec 2020 13:55:23 -0800 Subject: [PATCH] Get rid of deprecated GHA actions (#110) --- .github/workflows/push_and_pr.yaml | 12 ++++++------ .github/workflows/tag_release.yaml | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/push_and_pr.yaml b/.github/workflows/push_and_pr.yaml index 481ab8f5..fc86872d 100644 --- a/.github/workflows/push_and_pr.yaml +++ b/.github/workflows/push_and_pr.yaml @@ -16,7 +16,7 @@ jobs: - name: Check out code uses: actions/checkout@v2 - name: Install Go - uses: actions/setup-go@v2.1.1 + uses: actions/setup-go@v2 with: go-version: '1.14.6' - name: GoReleaser @@ -31,7 +31,7 @@ jobs: - name: Check out code uses: actions/checkout@v2 - name: Install Go - uses: actions/setup-go@v2.1.1 + uses: actions/setup-go@v2 with: go-version: '1.14.6' - name: Install Ginkgo testing framework @@ -56,13 +56,13 @@ jobs: run: | # Install Pulumi curl -fsSL https://get.pulumi.com | bash -s - export PATH=$HOME/.pulumi/bin:$PATH - echo "::set-env name=PATH::$PATH" + - name: Set env variables and path + run: | + echo '$HOME/.pulumi/bin' >> $GITHUB_PATH + echo "STACK=ci-cluster-$(head /dev/urandom | LC_CTYPE=C tr -dc '[:lower:]' | head -c5)" >> $GITHUB_ENV - name: Tests run: | # Create GKE test cluster to install CRDs and use with the test operator. - export STACK=ci-cluster-$(head /dev/urandom | LC_CTYPE=C tr -dc '[:lower:]' | head -c5) - echo "::set-env name=STACK::$STACK" scripts/ci-cluster-create.sh # Run tests diff --git a/.github/workflows/tag_release.yaml b/.github/workflows/tag_release.yaml index 49dfaa1a..517193a5 100644 --- a/.github/workflows/tag_release.yaml +++ b/.github/workflows/tag_release.yaml @@ -13,7 +13,7 @@ jobs: - name: Check out code uses: actions/checkout@v2 - name: Install Go - uses: actions/setup-go@v2.1.1 + uses: actions/setup-go@v2 with: go-version: '1.14.6' - name: Install Ginkgo testing framework @@ -38,13 +38,13 @@ jobs: run: | # Install Pulumi curl -fsSL https://get.pulumi.com | bash -s - export PATH=$HOME/.pulumi/bin:$PATH - echo "::set-env name=PATH::$PATH" + - name: Set env variables + run: | + echo '$HOME/.pulumi/bin' >> $GITHUB_PATH + echo "STACK=ci-cluster-$(head /dev/urandom | LC_CTYPE=C tr -dc '[:lower:]' | head -c5)" >> $GITHUB_ENV - name: Tests run: | # Create GKE test cluster to install CRDs and use with the test operator. - export STACK=ci-cluster-$(head /dev/urandom | LC_CTYPE=C tr -dc '[:lower:]' | head -c5) - echo "::set-env name=STACK::$STACK" scripts/ci-cluster-create.sh # Run tests @@ -62,7 +62,7 @@ jobs: - name: Check out code uses: actions/checkout@v2 - name: Install Go - uses: actions/setup-go@v2.1.1 + uses: actions/setup-go@v2 with: go-version: '1.14.6' - name: Login to Docker Hub