mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-30 10:47:34 +02:00
CI: Replace set-output
with environment file
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -482,7 +482,7 @@ jobs:
|
|||||||
INPUT=src/ArduinoJson.h
|
INPUT=src/ArduinoJson.h
|
||||||
OUTPUT=ArduinoJson-$VERSION.h
|
OUTPUT=ArduinoJson-$VERSION.h
|
||||||
extras/scripts/build-single-header.sh "$INPUT" "$OUTPUT"
|
extras/scripts/build-single-header.sh "$INPUT" "$OUTPUT"
|
||||||
echo ::set-output name=filename::${OUTPUT}
|
echo "filename=${OUTPUT}" >> $GITHUB_OUTPUT
|
||||||
- name: Smoke test
|
- name: Smoke test
|
||||||
run: |
|
run: |
|
||||||
g++ -x c++ - <<END
|
g++ -x c++ - <<END
|
||||||
@ -516,7 +516,7 @@ jobs:
|
|||||||
INPUT=src/ArduinoJson.hpp
|
INPUT=src/ArduinoJson.hpp
|
||||||
OUTPUT=ArduinoJson-$VERSION.hpp
|
OUTPUT=ArduinoJson-$VERSION.hpp
|
||||||
extras/scripts/build-single-header.sh "$INPUT" "$OUTPUT"
|
extras/scripts/build-single-header.sh "$INPUT" "$OUTPUT"
|
||||||
echo ::set-output name=filename::${OUTPUT}
|
echo "filename=${OUTPUT}" >> $GITHUB_OUTPUT
|
||||||
- name: Smoke test
|
- name: Smoke test
|
||||||
run: |
|
run: |
|
||||||
g++ -x c++ - <<END
|
g++ -x c++ - <<END
|
||||||
|
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@ -13,8 +13,8 @@ jobs:
|
|||||||
- name: Set variables
|
- name: Set variables
|
||||||
id: init
|
id: init
|
||||||
run: |
|
run: |
|
||||||
echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
|
echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=version::${GITHUB_REF#refs/tags/v}
|
echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Write release body
|
- name: Write release body
|
||||||
@ -22,25 +22,25 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
FILENAME=RELEASE.md
|
FILENAME=RELEASE.md
|
||||||
extras/scripts/get-release-body.sh ${{ steps.init.outputs.tag }} CHANGELOG.md | tee $FILENAME
|
extras/scripts/get-release-body.sh ${{ steps.init.outputs.tag }} CHANGELOG.md | tee $FILENAME
|
||||||
echo ::set-output name=filename::$FILENAME
|
echo "filename=$FILENAME" >> $GITHUB_OUTPUT
|
||||||
- name: Amalgamate ArduinoJson.h
|
- name: Amalgamate ArduinoJson.h
|
||||||
id: amalgamate_h
|
id: amalgamate_h
|
||||||
run: |
|
run: |
|
||||||
FILENAME=ArduinoJson-${{ steps.init.outputs.tag }}.h
|
FILENAME=ArduinoJson-${{ steps.init.outputs.tag }}.h
|
||||||
extras/scripts/build-single-header.sh src/ArduinoJson.h "$FILENAME"
|
extras/scripts/build-single-header.sh src/ArduinoJson.h "$FILENAME"
|
||||||
echo ::set-output name=filename::$FILENAME
|
echo "filename=$FILENAME" >> $GITHUB_OUTPUT
|
||||||
- name: Amalgamate ArduinoJson.hpp
|
- name: Amalgamate ArduinoJson.hpp
|
||||||
id: amalgamate_hpp
|
id: amalgamate_hpp
|
||||||
run: |
|
run: |
|
||||||
FILENAME=ArduinoJson-${{ steps.init.outputs.tag }}.hpp
|
FILENAME=ArduinoJson-${{ steps.init.outputs.tag }}.hpp
|
||||||
extras/scripts/build-single-header.sh src/ArduinoJson.hpp "$FILENAME"
|
extras/scripts/build-single-header.sh src/ArduinoJson.hpp "$FILENAME"
|
||||||
echo ::set-output name=filename::$FILENAME
|
echo "filename=$FILENAME" >> $GITHUB_OUTPUT
|
||||||
- name: Create Arduino package
|
- name: Create Arduino package
|
||||||
id: arduino
|
id: arduino
|
||||||
run: |
|
run: |
|
||||||
FILENAME=ArduinoJson-${{ steps.init.outputs.tag }}.zip
|
FILENAME=ArduinoJson-${{ steps.init.outputs.tag }}.zip
|
||||||
extras/scripts/build-arduino-package.sh . "$FILENAME"
|
extras/scripts/build-arduino-package.sh . "$FILENAME"
|
||||||
echo ::set-output name=filename::$FILENAME
|
echo "filename=$FILENAME" >> $GITHUB_OUTPUT
|
||||||
- name: Create release
|
- name: Create release
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
|
Reference in New Issue
Block a user