Skip to content

Commit 8a8c947

Browse files
authored
Merge pull request contiki-ng#1442 from jeppenodgaard/jo/gitlab-actions-environment-files
Update Github Actions: replace set-env with environment files
2 parents c6161c2 + 70f5c1c commit 8a8c947

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
# Construct the correct docker container image tag corresponding to this build
4444
- name: Figure out correct docker image tag
4545
run:
46-
echo ::set-env name=DOCKER_IMG::$DOCKER_BASE_IMG:$(git log -1 --oneline -- tools/docker/ | cut -d" " -f1)
46+
echo DOCKER_IMG=$DOCKER_BASE_IMG:$(git log -1 --oneline -- tools/docker/ | cut -d" " -f1) >> $GITHUB_ENV
4747

4848
# Try to download the image from dockerhub. If it works, use it.
4949
#
@@ -59,7 +59,7 @@ jobs:
5959
run: |
6060
echo "Using $DOCKER_IMG for this run"
6161
echo "Pulling image $DOCKER_IMG from dockerhub";
62-
docker pull $DOCKER_IMG || echo ::set-env name=DOCKER_NEED_BUILD::1
62+
docker pull $DOCKER_IMG || echo DOCKER_NEED_BUILD=1 >> $GITHUB_ENV
6363
6464
- name: Build docker image if required
6565
if: env.DOCKER_NEED_BUILD == '1'
@@ -101,7 +101,7 @@ jobs:
101101
# Set permissions for Docker mount
102102
sudo chown -R 1000:1000 $OUT_OF_TREE_TEST_PATH
103103
# Set up docker mount
104-
echo ::set-env name=DOCKER_ARGS::-v `pwd`/$OUT_OF_TREE_TEST_PATH:/home/user/out-of-tree-tests
104+
echo DOCKER_ARGS=-v `pwd`/$OUT_OF_TREE_TEST_PATH:/home/user/out-of-tree-tests >> $GITHUB_ENV
105105
106106
# Fire up the container and run corresponding tests
107107
- name: Execute tests

0 commit comments

Comments
 (0)