Skip to content

Commit

Permalink
Corrected setting env variable within Github Actions
Browse files Browse the repository at this point in the history
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
  • Loading branch information
emanlove committed Oct 30, 2023
1 parent 82f7fed commit 62e0d2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
run: |
SELENIUM_MANAGER_EXE=$(python -c 'from selenium.webdriver.common.selenium_manager import SeleniumManager; sm=SeleniumManager(); print(f"{str(sm.get_binary())}")')
echo "$SELENIUM_MANAGER_EXE"
export WEBDRIVERPATH=$($SELENIUM_MANAGER_EXE --browser chrome --debug | awk '/INFO[[:space:]]Driver path:/ {print $NF;exit}')
echo "WEBDRIVERPATH=$($SELENIUM_MANAGER_EXE --browser chrome --debug | awk '/INFO[[:space:]]Driver path:/ {print $NF;exit}')" >> "$GITHUB_ENV"
echo "$WEBDRIVERPATH"
- name: Generate stub file for ${{ matrix.python-version }}
if: matrix.python-version != 'pypy-3.7'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Library SeleniumLibrary event_firing_webdriver=${CURDIR}/../../resources/testlibs/MyListener.py
Resource resource_event_firing_webdriver.robot
Suite Setup Open Browser ${FRONT PAGE} ${BROWSER} alias=event_firing_webdriver
... remote_url=${REMOTE_URL} executable_path=/usr/bin/chromedriver
... remote_url=${REMOTE_URL} executable_path=%{WEBDRIVERPATH}
Suite Teardown Close All Browsers

*** Variables ***
Expand Down

0 comments on commit 62e0d2b

Please sign in to comment.