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

[@octokit/paginate-rest] "response.data.workflow_runs" is deprecated #14

Closed
otreblan opened this issue Jun 2, 2020 · 3 comments
Closed

Comments

@otreblan
Copy link

otreblan commented Jun 2, 2020

Screenshot_2020-06-02 2020-01-est-19 proyecto

https://github.com/2020-01-est-19/proyecto/runs/731399431

I'm trying to download an artifact from the same commit from my R CI workflow

    - uses: dawidd6/action-download-artifact@v2
      with:
        github_token: ${{secrets.GITHUB_TOKEN}}
        workflow: r.yml
        name: proyecto
        commit: ${{github.event.push.head.sha}}
@dawidd6
Copy link
Owner

dawidd6 commented Jun 2, 2020

This is just a warning. The real problem is in your commit input. Don't know which commit do you want to get here, but the expression is wrong, see: https://developer.github.com/webhooks/event-payloads/#push. You can even see the ==> Commit: output from Action, the commit input is empty.

@otreblan
Copy link
Author

otreblan commented Jun 2, 2020

Now it works. I changed the commit: to use GITHUB_SHA.
https://github.com/2020-01-est-19/proyecto/runs/731679320?check_suite_focus=true

@otreblan otreblan closed this as completed Jun 2, 2020
@dawidd6
Copy link
Owner

dawidd6 commented Jun 2, 2020

You can change it to just ${{github.sha}}.

otreblan added a commit to 2020-01-est-19/proyecto that referenced this issue Jun 2, 2020
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

2 participants