Skip to content

Commit 46a5ba0

Browse files
committed
[CI/CD] Adapted release to the new GitHub syntax
1 parent f125faf commit 46a5ba0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ jobs:
1717
run: |
1818
REF=${{ github.ref }}
1919
URL="https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/${REF##*/}"
20-
StatusCode=$(curl -o -I -L -s -w "%{http_code}" -X GET -G $URL)
20+
StatusCode=$(curl -o /dev/null -I -L -s -w "%{http_code}" -X GET -G $URL)
2121
echo $StatusCode
2222
if [[ "$StatusCode" == 200 ]]; then
2323
echo "This is tagged release!"
24-
echo "::set-output name=is_tag::no"
24+
echo "IS_TAG=no" >> $GITHUB_OUTPUT
2525
else
2626
echo "This is a tag not release!"
27-
echo "::set-output name=is_tag::yes"
27+
echo "IS_TAG=yes" >> $GITHUB_OUTPUT
2828
fi
2929
3030
build:
3131
runs-on: ubuntu-latest
3232
container: setsoft/kicad_pybuild:latest
3333
needs: check
34-
if: ${{ needs.check.outputs.is_tag == 'yes' }}
34+
if: ${{ needs.check.outputs.IS_TAG == 'yes' }}
3535
outputs:
36-
deb_name: ${{ steps.mdeb.outputs.deb_name }}
36+
DEB_NAME: ${{ steps.mdeb.outputs.DEB_NAME }}
3737

3838
steps:
3939
- name: Checkout
@@ -44,7 +44,7 @@ jobs:
4444
run: |
4545
make deb
4646
mv ../*.deb .
47-
echo "::set-output name=deb_name::"`ls *.deb`
47+
echo "DEB_NAME="`ls *.deb` >> $GITHUB_OUTPUT
4848
mkdir output
4949
mv *.deb output
5050
@@ -75,7 +75,7 @@ jobs:
7575
CHANGELOG_FILE: "CHANGELOG.md"
7676
with:
7777
args: |
78-
package/${{needs.build.outputs.deb_name}}
78+
package/${{needs.build.outputs.DEB_NAME}}
7979
8080
- name: Trigger kicad_auto image build
8181
run: |

0 commit comments

Comments
 (0)