From 9b5021a2e3013442416a15170b93118720310c53 Mon Sep 17 00:00:00 2001 From: "Vincent A. Cicirello" Date: Mon, 24 Oct 2022 17:24:32 -0400 Subject: [PATCH 1/2] fix: fallback for non-updated self-hosted runners --- generatesitemap.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/generatesitemap.py b/generatesitemap.py index 71024b00..9318dcf7 100755 --- a/generatesitemap.py +++ b/generatesitemap.py @@ -299,6 +299,9 @@ def set_outputs(names_values) : with open(os.environ["GITHUB_OUTPUT"], "a") as f : for name, value in names_values.items() : print("{0}={1}".format(name, value), file=f) + else : # Fall-back to deprecated set-output for non-updated runners + for name, value in names_values.items() : + print("::set-output name={0}::{1}".format(name, value)) def main( websiteRoot, From 56fb3f15a8035e0c4bd6e769b625e0888d13ccac Mon Sep 17 00:00:00 2001 From: "Vincent A. Cicirello" Date: Mon, 24 Oct 2022 17:29:18 -0400 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 954d4091..2b044061 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] - 2022-10-21 +## [Unreleased] - 2022-10-24 ### Added @@ -19,6 +19,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### CI/CD ### Dependencies + + +## [1.8.6] - 2022-10-24 + +### Fixed +* Some users may be using the action on a self-hosted runner not yet updated to a version supporting the + new GitHub Actions `GITHUB_OUTPUT` environment file. This patch adds backwards compatibility for those + users (e.g., it falls back to using the deprecated `set-output` if `GITHUB_OUTPUT` doesn't exist). + +### Dependencies * Bump cicirello/pyaction from 4.11.0 to 4.11.1