fix: support the ability to retrieve & output information properly when running in workflows #11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Modified the code to properly obtain the information the composite action requires using GitHub Input Variables and
GITHUB_OUTPUT
rather thannode-config
.Background info
For some reason, using node-config was just not working at all for running the composite action in another repository but oddly was when it was self-invoked in this repository. I re-factored code to make sure we only relied on
node-config
for testing only if needed but GitHubINPUT_
variables for everything else. There could be additional improvements that can be done with the code but improvements can be made at a later time.In addition, there is something odd about composite actions not able to retrieve environment variables in repositories not of their own. I am not sure why this is the case but did some digging and referenced the following:
How can this be tested (manually and/or automated test)?
Provide Manual tests Steps if applicable
Refer to the
Usage
section of theREADME.md
in using this action in your GitHub Actions workflow of your repository.For this particular case, reference this action with
uses: cityoflosangeles/fetch-latest-github-release@ghi-10
to test out these changes from this branch.Provide steps for running automated tests if applicable
Checkout this branch and run
npm test
.Which issue(s) is/are related to this PR?
This PR is/are related to issue(s) #10
close #10