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 #4

Closed
rlespinasse opened this issue Dec 11, 2021 · 1 comment · Fixed by #15
Closed

Access values using action outputs #4

rlespinasse opened this issue Dec 11, 2021 · 1 comment · Fixed by #15
Labels
enhancement New feature or request released

Comments

@rlespinasse
Copy link
Owner

rlespinasse commented Dec 11, 2021

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

- id: slug-key-name
   uses: rlespinasse/slugify-value@v1.x
   with:
     key: KEY_NAME
     value: value_to_slugify
- run: |
          echo "${{ steps.slug-key-name.outputs.value }} is the same as ${{ env.KEY_NAME }}"
          echo "${{ steps.slug-key-name.outputs.slug }} is the same as ${{ env.KEY_NAME_SLUG }}"
          echo "${{ steps.slug-key-name.outputs.slug_url }} is the same as ${{ env.KEY_NAME_SLUG_URL }}"
          echo "${{ steps.slug-key-name.outputs.slug_cs }} is the same as ${{ env.KEY_NAME_SLUG_CS }}"
          echo "${{ steps.slug-key-name.outputs.slug_url_cs }} is the same as ${{ env.KEY_NAME_SLUG_URL_CS }}"

The publish-env input (as boolean) enable us to disable the publication as environment variables
And the prefix input is not used in this context.

@github-actions
Copy link

🎉 This issue has been resolved in version 1.3.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