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 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,