Commit 6888fcc2 authored by Ivan Vandot's avatar Ivan Vandot Committed by GitHub

fix all set-env and add-path (#948)

parent 77dd5628
...@@ -99,7 +99,7 @@ jobs: ...@@ -99,7 +99,7 @@ jobs:
cp $(k3d get-kubeconfig --name='k3s-default') ~/.kube/config cp $(k3d get-kubeconfig --name='k3s-default') ~/.kube/config
- name: Increase REPLICA to 5 - name: Increase REPLICA to 5
run: | run: |
echo "::set-env name=REPLICA::5" echo "REPLICA=5" >> $GITHUB_ENV
- name: Set testing cluster (Node connection) 5 bee nodes - name: Set testing cluster (Node connection) 5 bee nodes
run: | run: |
echo -e "127.0.0.10\tregistry.localhost" | sudo tee -a /etc/hosts echo -e "127.0.0.10\tregistry.localhost" | sudo tee -a /etc/hosts
...@@ -122,7 +122,7 @@ jobs: ...@@ -122,7 +122,7 @@ jobs:
docker push ethersphere/bee:latest docker push ethersphere/bee:latest
- name: Set IMAGE_DIGEST variable - name: Set IMAGE_DIGEST variable
if: success() if: success()
run: echo "::set-env name=IMAGE_DIGEST::$(docker inspect --format='{{index .RepoDigests 0}}' ethersphere/bee:latest | cut -d'@' -f 2 | tr -d '\n')" run: echo "IMAGE_DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' ethersphere/bee:latest | cut -d'@' -f 2 | tr -d '\n')" >> $GITHUB_ENV
- name: Trigger ArgoCD - name: Trigger ArgoCD
if: success() if: success()
uses: peter-evans/repository-dispatch@v1 uses: peter-evans/repository-dispatch@v1
......
...@@ -18,14 +18,9 @@ jobs: ...@@ -18,14 +18,9 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest] os: [ubuntu-latest, macos-latest, windows-latest]
steps: steps:
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v1 uses: actions/setup-go@v2
with: with:
go-version: ${{ matrix.go }} go-version: ${{ matrix.go }}
- name: Setup env
run: |
echo "::set-env name=GOPATH::$(go env GOPATH)"
echo "::add-path::$(go env GOPATH)/bin"
shell: bash
- name: Set git to use LF - name: Set git to use LF
# make sure that line endings are not converted on windows # make sure that line endings are not converted on windows
# as gofmt linter will report that they need to be changed # as gofmt linter will report that they need to be changed
......
...@@ -17,10 +17,10 @@ jobs: ...@@ -17,10 +17,10 @@ jobs:
if [ $DAYS -eq 0 ]; then if [ $DAYS -eq 0 ]; then
echo "There are new commits..." echo "There are new commits..."
echo "Last commit from $AUTHOR, URL => $URL" echo "Last commit from $AUTHOR, URL => $URL"
echo ::set-env name=GHA_REPO_RUN::true echo "GHA_REPO_RUN=true" >> $GITHUB_ENV
else else
echo "No new commits, exiting..." echo "No new commits, exiting..."
echo ::set-env name=GHA_REPO_RUN::false echo "GHA_REPO_RUN=false" >> $GITHUB_ENV
fi fi
- name: Trigger ArgoCD - name: Trigger ArgoCD
if: env.GHA_REPO_RUN == 'true' if: env.GHA_REPO_RUN == 'true'
......
...@@ -101,7 +101,7 @@ jobs: ...@@ -101,7 +101,7 @@ jobs:
cp $(k3d get-kubeconfig --name='k3s-default') ~/.kube/config cp $(k3d get-kubeconfig --name='k3s-default') ~/.kube/config
- name: Increase REPLICA to 5 - name: Increase REPLICA to 5
run: | run: |
echo "::set-env name=REPLICA::5" echo "REPLICA=5" >> $GITHUB_ENV
- name: Set testing cluster (Node connection) 5 bee nodes - name: Set testing cluster (Node connection) 5 bee nodes
run: | run: |
echo -e "127.0.0.10\tregistry.localhost" | sudo tee -a /etc/hosts echo -e "127.0.0.10\tregistry.localhost" | sudo tee -a /etc/hosts
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment