Commit 5b10800e by Mathieu Kniewallner Committed by Bjorn Neergaard

ci: use env vars for exporting output

https://github.com/python-poetry/poetry/actions/runs/3371708936 shows
that `set-output` is now deprecated.
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
shows the new way of exporting outputs.
parent 18c2903b
...@@ -50,7 +50,7 @@ jobs: ...@@ -50,7 +50,7 @@ jobs:
- name: Get full Python version - name: Get full Python version
id: full-python-version id: full-python-version
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))") run: echo version=$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))") >> $GITHUB_OUTPUT
- name: Bootstrap poetry - name: Bootstrap poetry
run: | run: |
...@@ -98,8 +98,7 @@ jobs: ...@@ -98,8 +98,7 @@ jobs:
- name: Get Plugin Version (poetry-plugin-export) - name: Get Plugin Version (poetry-plugin-export)
id: poetry-plugin-export-version id: poetry-plugin-export-version
run: | run: |
echo ::set-output name=version::$(\ echo version=$(poetry show poetry-plugin-export | grep version | cut -d : -f 2 | xargs) >> $GITHUB_OUTPUT
poetry show poetry-plugin-export | grep version | cut -d : -f 2 | xargs)
- name: Checkout Plugin Source (poetry-plugin-export) - name: Checkout Plugin Source (poetry-plugin-export)
uses: actions/checkout@v3 uses: actions/checkout@v3
......
...@@ -30,8 +30,7 @@ jobs: ...@@ -30,8 +30,7 @@ jobs:
- name: Check Version - name: Check Version
id: check-version id: check-version
run: | run: |
[[ "$(poetry version --short)" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] \ [[ "$(poetry version --short)" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || echo prerelease=true >> $GITHUB_OUTPUT
|| echo ::set-output name=prerelease::true
- name: Create Release - name: Create Release
uses: ncipollo/release-action@v1 uses: ncipollo/release-action@v1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment