Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access values using action outputs #26

Closed
rlespinasse opened this issue Sep 24, 2022 · 2 comments · Fixed by #29
Closed

Access values using action outputs #26

rlespinasse opened this issue Sep 24, 2022 · 2 comments · Fixed by #29
Labels
enhancement New feature or request released

Comments

@rlespinasse
Copy link
Owner

In addition to the environment variables, we want to access the values as action outputs.

- id: git-commit-data
  name: Expose git commit data
  uses: rlespinasse/git-commit-data-action@v1
- run: |
     echo "${{ steps.git-commit-data.outputs.sha }} is the same as ${{ env.GIT_COMMIT_SHA }}"
     echo "${{ steps.git-commit-data.outputs.author }} is the same as ${{ env.GIT_COMMIT_AUTHOR }}"

The publish-env input (as boolean) enables us to disable the publication as an environment variable.

@rlespinasse rlespinasse added the enhancement New feature or request label Sep 24, 2022
@rlespinasse
Copy link
Owner Author

⚠️ about the multiline environment variable. We may need to use javascript (github-script) to support this usecase.

@github-actions
Copy link

github-actions bot commented Jun 9, 2023

🎉 This issue has been resolved in version 1.5.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant