Skip to content

Commit

Permalink
Changing to the supported way to set an env. variable for GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
simcax committed Oct 31, 2023
1 parent 83fab6b commit dc12b1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ jobs:
--org iconnmon \
--token ${{ secrets.INFLUX_TOKEN }}\
--active
export INFLUXDB_TOKEN=$(influx auth create \
echo "INFLUXDB_TOKEN=$(influx auth create \
--all-access \
--host http://localhost:8086 \
--org iconnmon \
--token ${{ secrets.INFLUX_TOKEN }} | sed -n '2 p'| awk '{print $2}')
--token ${{ secrets.INFLUX_TOKEN }} | sed -n '2 p'| awk '{print $2}')" >> $GITHUB_ENV
echo $INFLUXDB_TOKEN
- name: Test with pytest
run: |
poetry run pytest
Expand Down

0 comments on commit dc12b1d

Please sign in to comment.