From 46a5ba035909f9672f919b2fcb8f89e7e17d43b4 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Wed, 8 Jan 2025 13:19:41 -0300 Subject: [PATCH] [CI/CD] Adapted release to the new GitHub syntax --- .github/workflows/release.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e0700f7..e7a8bfb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,23 +17,23 @@ jobs: run: | REF=${{ github.ref }} URL="https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/${REF##*/}" - StatusCode=$(curl -o -I -L -s -w "%{http_code}" -X GET -G $URL) + StatusCode=$(curl -o /dev/null -I -L -s -w "%{http_code}" -X GET -G $URL) echo $StatusCode if [[ "$StatusCode" == 200 ]]; then echo "This is tagged release!" - echo "::set-output name=is_tag::no" + echo "IS_TAG=no" >> $GITHUB_OUTPUT else echo "This is a tag not release!" - echo "::set-output name=is_tag::yes" + echo "IS_TAG=yes" >> $GITHUB_OUTPUT fi build: runs-on: ubuntu-latest container: setsoft/kicad_pybuild:latest needs: check - if: ${{ needs.check.outputs.is_tag == 'yes' }} + if: ${{ needs.check.outputs.IS_TAG == 'yes' }} outputs: - deb_name: ${{ steps.mdeb.outputs.deb_name }} + DEB_NAME: ${{ steps.mdeb.outputs.DEB_NAME }} steps: - name: Checkout @@ -44,7 +44,7 @@ jobs: run: | make deb mv ../*.deb . - echo "::set-output name=deb_name::"`ls *.deb` + echo "DEB_NAME="`ls *.deb` >> $GITHUB_OUTPUT mkdir output mv *.deb output @@ -75,7 +75,7 @@ jobs: CHANGELOG_FILE: "CHANGELOG.md" with: args: | - package/${{needs.build.outputs.deb_name}} + package/${{needs.build.outputs.DEB_NAME}} - name: Trigger kicad_auto image build run: |