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:
cp $(k3d get-kubeconfig --name='k3s-default') ~/.kube/config
- name: Increase REPLICA to 5
run: |
echo "::set-env name=REPLICA::5"
echo "REPLICA=5" >> $GITHUB_ENV
- name: Set testing cluster (Node connection) 5 bee nodes
run: |
echo -e "127.0.0.10\tregistry.localhost" | sudo tee -a /etc/hosts
......@@ -122,7 +122,7 @@ jobs:
docker push ethersphere/bee:latest
- name: Set IMAGE_DIGEST variable
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
if: success()
uses: peter-evans/repository-dispatch@v1
......
......@@ -18,14 +18,9 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Setup Go
uses: actions/setup-go@v1
uses: actions/setup-go@v2
with:
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
# make sure that line endings are not converted on windows
# as gofmt linter will report that they need to be changed
......
......@@ -17,10 +17,10 @@ jobs:
if [ $DAYS -eq 0 ]; then
echo "There are new commits..."
echo "Last commit from $AUTHOR, URL => $URL"
echo ::set-env name=GHA_REPO_RUN::true
echo "GHA_REPO_RUN=true" >> $GITHUB_ENV
else
echo "No new commits, exiting..."
echo ::set-env name=GHA_REPO_RUN::false
echo "GHA_REPO_RUN=false" >> $GITHUB_ENV
fi
- name: Trigger ArgoCD
if: env.GHA_REPO_RUN == 'true'
......
......@@ -101,7 +101,7 @@ jobs:
cp $(k3d get-kubeconfig --name='k3s-default') ~/.kube/config
- name: Increase REPLICA to 5
run: |
echo "::set-env name=REPLICA::5"
echo "REPLICA=5" >> $GITHUB_ENV
- name: Set testing cluster (Node connection) 5 bee nodes
run: |
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