Skip to content

Commit

Permalink
Merge pull request #75 from cicirello/patch-self-hosted-runners
Browse files Browse the repository at this point in the history
Added backwards compatibility for self-hosted runners without the GITHUB_OUTPUT env file
  • Loading branch information
cicirello authored Oct 24, 2022
2 parents a793ddb + 56fb3f1 commit 4229084
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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


Expand Down
3 changes: 3 additions & 0 deletions generatesitemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4229084

Please sign in to comment.