Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit b1ebe1c

Browse files
authored
Merge pull request #1607 from thaJeztah/1.4_fix_gha_setenv
[release/1.4] gha: replace uses of deprecated "set-env", "add-path"
2 parents 61363b3 + bb8b690 commit b1ebe1c

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
- name: Set env
2020
shell: bash
2121
run: |
22-
echo "::set-env name=GOPATH::${{ github.workspace }}"
23-
echo "::add-path::${{ github.workspace }}/bin"
22+
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
23+
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
2424
2525
- name: Checkout cri repo
2626
uses: actions/checkout@v2
@@ -87,8 +87,8 @@ jobs:
8787
- name: Set env
8888
shell: bash
8989
run: |
90-
echo "::set-env name=GOPATH::${{ github.workspace }}"
91-
echo "::add-path::${{ github.workspace }}/bin"
90+
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
91+
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
9292
9393
- name: Checkout cri repo
9494
uses: actions/checkout@v2
@@ -158,16 +158,20 @@ jobs:
158158
path: ${{github.workspace}}\\src\\github.com\\containerd\\cri
159159

160160
- name: Clone containerd repo
161+
shell: bash
161162
run: |
162-
bash.exe -c "GO111MODULE=off go get github.com/containerd/containerd"
163+
GO111MODULE=off go get github.com/containerd/containerd
163164
164165
- name: Configure Windows environment variables
166+
shell: bash
165167
run: |
166-
echo "::set-env name=GOPATH::$env:GITHUB_WORKSPACE"
168+
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
169+
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
167170
168171
- name: Build
172+
shell: bash
169173
run: |
170-
bash.exe -c "pwd && ./test/windows/test.sh"
174+
pwd && ./test/windows/test.sh
171175
working-directory: ${{github.workspace}}\\src\\github.com\\containerd\\cri
172176

173177
- name: Upload containerd log file

0 commit comments

Comments
 (0)