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

Simplify workflow by using $GITHUB_OUTPUT environment file #13

Open
vberlier opened this issue Nov 29, 2022 · 1 comment
Open

Simplify workflow by using $GITHUB_OUTPUT environment file #13

vberlier opened this issue Nov 29, 2022 · 1 comment

Comments

@vberlier
Copy link

Currently the example workflow uses read-file-action to expose the suggestion to the step that creates the comment. However GitHub actions can do this natively using the $GITHUB_OUTPUT environment file https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter

- name: Run Suggest
  id: suggest
  run: |
    echo 'content<<EOF' >> $GITHUB_OUTPUT
    faqtory suggest "${{ github.event.issue.title }}" >> $GITHUB_OUTPUT
    echo 'EOF' >> $GITHUB_OUTPUT

Untested but I think that's how it would work.

@github-actions
Copy link

Thank you for your issue. Give us a little time to review it.

PS. You might want to check the FAQ if you haven't done so already.

This is an automated reply, generated by FAQtory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant