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

Is there a way to take a github artifact and save it to an issue? #181

Open
michaelhofrichter opened this issue Feb 23, 2022 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@michaelhofrichter
Copy link

michaelhofrichter commented Feb 23, 2022

What you want to add

I'm creating an issue when there is a failure in running a github workflow. The github workflow is saving the errors as an artifact on the workflow:

      - name: upload error artifacts
        uses: actions/upload-artifact@v2
        if: ${{ failure() }}
        with:
          name: errors
          path: ./**/error*.jpg

There's another step that generates a text report and I'd love to add that text file to the body of the issue.

Can I get someway to also save that to the issue?

Why this is needed

It makes the details in the issue itself more useful.

Currently I'm creating an issue by saying:

      - name: If tests failed create an issue
        if: ${{ failure() }}
        uses: actions-ecosystem/action-create-issue@v1
        with:
          github_token: ${{ secrets.github_token }}
          title: Automated tests failed
          body: |
            An automated test failed. See the action at ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}.
          labels: |
            bug
@michaelhofrichter michaelhofrichter added the enhancement New feature or request label Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant