Skip to content

Commit 62e0d2b

Browse files
committed
Corrected setting env variable within Github Actions
There is apparently a method for setting variables. Basically, echo "{environment_variable_name}={value}" >> "$GITHUB_ENV" Trying this out .. Reference: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-environment-variable
1 parent 82f7fed commit 62e0d2b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
run: |
4949
SELENIUM_MANAGER_EXE=$(python -c 'from selenium.webdriver.common.selenium_manager import SeleniumManager; sm=SeleniumManager(); print(f"{str(sm.get_binary())}")')
5050
echo "$SELENIUM_MANAGER_EXE"
51-
export WEBDRIVERPATH=$($SELENIUM_MANAGER_EXE --browser chrome --debug | awk '/INFO[[:space:]]Driver path:/ {print $NF;exit}')
51+
echo "WEBDRIVERPATH=$($SELENIUM_MANAGER_EXE --browser chrome --debug | awk '/INFO[[:space:]]Driver path:/ {print $NF;exit}')" >> "$GITHUB_ENV"
5252
echo "$WEBDRIVERPATH"
5353
- name: Generate stub file for ${{ matrix.python-version }}
5454
if: matrix.python-version != 'pypy-3.7'

atest/acceptance/2-event_firing_webdriver/event_firing_webdriver.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Library SeleniumLibrary event_firing_webdriver=${CURDIR}/../../resources/testlibs/MyListener.py
33
Resource resource_event_firing_webdriver.robot
44
Suite Setup Open Browser ${FRONT PAGE} ${BROWSER} alias=event_firing_webdriver
5-
... remote_url=${REMOTE_URL} executable_path=/usr/bin/chromedriver
5+
... remote_url=${REMOTE_URL} executable_path=%{WEBDRIVERPATH}
66
Suite Teardown Close All Browsers
77

88
*** Variables ***

0 commit comments

Comments
 (0)