summaryrefslogtreecommitdiff
path: root/.github/workflows/main.yaml
diff options
context:
space:
mode:
authorLuke Bakken <luke@bakken.io>2022-10-22 13:45:48 -0700
committerLukas Larsson <lukas@erlang.org>2022-10-25 14:20:49 +0200
commite3e66033d4d520a295dc943aae4bdcf428435b62 (patch)
tree7384e3ced5eb6bb39150064371ab60f65527f060 /.github/workflows/main.yaml
parentc43e13b9f8226011ae07238e29c3c88a6afccf70 (diff)
downloaderlang-e3e66033d4d520a295dc943aae4bdcf428435b62.tar.gz
Convert from `::set-output` to `GITHUB_OUTPUT`
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Diffstat (limited to '.github/workflows/main.yaml')
-rw-r--r--.github/workflows/main.yaml12
1 files changed, 7 insertions, 5 deletions
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index a9435952b2..bd16db2e23 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -41,7 +41,7 @@ jobs:
.github/scripts/path-filters.sh > .github/scripts/path-filters.yaml
ALL_APPS=$(grep '^[a-z_]*:' .github/scripts/path-filters.yaml | sed 's/:.*$//')
ALL_APPS=$(jq -n --arg inarr "${ALL_APPS}" '$inarr | split("\n")' | tr '\n' ' ')
- echo "::set-output name=all::${ALL_APPS}"
+ echo "all=${ALL_APPS}" >> $GITHUB_OUTPUT
- uses: dorny/paths-filter@v2
id: changes
with:
@@ -250,11 +250,13 @@ jobs:
# actions/cache on Windows sometimes does not set cache-hit even though there was one. Setting it manually.
- name: Set wxWidgets cache
id: wxwidgets-cache
+ env:
+ WSLENV: GITHUB_OUTPUT/p
run: |
if [ -d wxWidgets ]; then
- echo "::set-output name=cache-hit::true"
+ echo "cache-hit=true" >> $GITHUB_OUTPUT
else
- echo "::set-output name=cache-hit::false"
+ echo "cache-hit=false" >> $GITHUB_OUTPUT
fi
- name: Download wxWidgets
@@ -695,8 +697,8 @@ jobs:
run: |
TAG=${GITHUB_REF#refs/tags/}
VSN=${TAG#OTP-}
- echo "::set-output name=tag::${TAG}"
- echo "::set-output name=vsn::${VSN}"
+ echo "tag=${TAG}" >> $GITHUB_OUTPUT
+ echo "vsn=${VSN}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v3