Switch to environment vars in $GITHUB_ENV.
This commit is contained in:
parent
d36e305129
commit
8f28ce65b0
1 changed files with 12 additions and 12 deletions
24
.github/workflows/main.yml
vendored
24
.github/workflows/main.yml
vendored
|
@ -37,18 +37,18 @@ jobs:
|
||||||
python-version: '3.7'
|
python-version: '3.7'
|
||||||
- name: set pip cache dir (linux/mac)
|
- name: set pip cache dir (linux/mac)
|
||||||
if: runner.os != 'Windows'
|
if: runner.os != 'Windows'
|
||||||
id: pip-cache
|
id: pip-cache-nix
|
||||||
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_OUTPUT
|
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV
|
||||||
- name: set pip cache dir (windows)
|
- name: set pip cache dir (windows)
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
id: pip-cache
|
id: pip-cache-win
|
||||||
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_OUTPUT
|
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_ENV
|
||||||
- name: debug pip cache
|
- name: debug pip cache
|
||||||
run: echo "PIP_CACHE_DIR=${{ steps.pip-cache.outputs.PIP_CACHE_DIR }}"
|
run: echo "PIP_CACHE_DIR=${{ env.PIP_CACHE_DIR }}"
|
||||||
- name: extract pip cache
|
- name: extract pip cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.pip-cache.outputs.PIP_CACHE_DIR }}
|
path: ${{ env.PIP_CACHE_DIR }}
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
|
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
|
||||||
restore-keys: ${{ runner.os }}-pip-
|
restore-keys: ${{ runner.os }}-pip-
|
||||||
- id: os-name
|
- id: os-name
|
||||||
|
@ -160,18 +160,18 @@ jobs:
|
||||||
string: ${{ runner.os }}
|
string: ${{ runner.os }}
|
||||||
- name: set pip cache dir (linux/mac)
|
- name: set pip cache dir (linux/mac)
|
||||||
if: runner.os != 'Windows'
|
if: runner.os != 'Windows'
|
||||||
id: pip-cache
|
id: pip-cache-nix
|
||||||
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_OUTPUT
|
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV
|
||||||
- name: set pip cache dir (windows)
|
- name: set pip cache dir (windows)
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
id: pip-cache
|
id: pip-cache-win
|
||||||
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_OUTPUT
|
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_ENV
|
||||||
- name: debug pip cache
|
- name: debug pip cache
|
||||||
run: echo "PIP_CACHE_DIR=${{ steps.pip-cache.outputs.PIP_CACHE_DIR }}"
|
run: echo "PIP_CACHE_DIR=${{ env.PIP_CACHE_DIR }}"
|
||||||
- name: extract pip cache
|
- name: extract pip cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.pip-cache.outputs.PIP_CACHE_DIR }}
|
path: ${{ env.PIP_CACHE_DIR }}
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
|
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
|
||||||
restore-keys: ${{ runner.os }}-pip-
|
restore-keys: ${{ runner.os }}-pip-
|
||||||
- run: pip install pyinstaller==4.6
|
- run: pip install pyinstaller==4.6
|
||||||
|
|
Loading…
Reference in a new issue