Skip to content

Commit

Permalink
[CI/CD] Adapted release to the new GitHub syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Jan 8, 2025
1 parent f125faf commit 46a5ba0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 46a5ba0

Please sign in to comment.