Skip to content

Commit 7c366f3

Browse files
committed
ci: set-output is deprecated
1 parent 3a2a8c9 commit 7c366f3

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

.github/workflows/ci.yml

+9-18
Original file line numberDiff line numberDiff line change
@@ -467,24 +467,19 @@ jobs:
467467
path: libmicrovmi/output/*
468468

469469
github_release:
470-
# create a Github release
471-
# only when
472-
# - push on master
473-
# - tag starts with 'v*'
474470
needs: [c_api, examples, release_python, release_debian_package, release_windows]
475471
runs-on: ubuntu-22.04
476-
# output these value to be used by other jobs so they can add assets
477472
outputs:
478473
upload_url: ${{ steps.step_upload_url.outputs.upload_url }}
479474
version: ${{ steps.get_version.outputs.version }}
480475

481476
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
482477
steps:
483-
- uses: actions/checkout@v1
478+
- uses: actions/checkout@v3
484479

485480
- name: Get the version
486481
id: get_version
487-
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
482+
run: echo "version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
488483

489484
- uses: actions/cache@v2
490485
with:
@@ -504,32 +499,27 @@ jobs:
504499
release_name: ${{ steps.get_version.outputs.version }}
505500

506501
- id: step_upload_url
507-
run: echo "::set-output name=upload_url::${{ steps.create_release.outputs.upload_url }}"
502+
run: echo "upload_url=${{ steps.create_release.outputs.upload_url }}" >> $GITHUB_OUTPUT
508503

509504
publish_debian_package:
510-
# publish the debian package in the Github Release
511505
needs: github_release
512506
runs-on: ubuntu-22.04
513507

514508
steps:
515-
# the deploy action below depends on a checkout of the repo
516-
# otherwise it fails trying to remote the 'origin' remote
517-
# https://github.com/JamesIves/github-pages-deploy-action/issues/335
518-
- uses: actions/checkout@v2
509+
- uses: actions/checkout@v3
519510

520-
# download artifacts
521511
- uses: actions/download-artifact@v2
522512
id: download
523513
with:
524514
name: microvmi_deb
525515

526-
- name: get artifact path and name
516+
- name: Get artifact path and name
527517
id: artefact
528518
run: |
529519
PATHNAME=$(find . -maxdepth 1 -name '*.deb')
530-
NAME=$(basename $PATHNAME)
531-
echo ::set-output name=path::${PATHNAME}
532-
echo ::set-output name=name::${NAME}
520+
NAME=$(basename "$PATHNAME")
521+
echo "path=$PATHNAME" >> $GITHUB_OUTPUT
522+
echo "name=$NAME" >> $GITHUB_OUTPUT
533523
534524
- name: Upload Debian package as Release asset
535525
uses: actions/[email protected]
@@ -541,6 +531,7 @@ jobs:
541531
asset_name: ${{ steps.artefact.outputs.name }}
542532
asset_content_type: application/vnd.debian.binary-package
543533

534+
544535
publish_windows:
545536
# publish the windows release on Github Release
546537
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)