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

How to get artifact from CI action of merged branch? #198

Open
jamesBennett opened this issue Oct 13, 2022 · 2 comments
Open

How to get artifact from CI action of merged branch? #198

jamesBennett opened this issue Oct 13, 2022 · 2 comments

Comments

@jamesBennett
Copy link

Here's my download

        uses: dawidd6/action-download-artifact@v2
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          workflow: ci.yml
          commit: ${{ github.event.pull_request.head.sha }}
          name: artifactKey
          path: ./manifest

This just seems to grab the last artifact created despite a merge or branch.

@dawidd6
Copy link
Owner

dawidd6 commented Aug 11, 2023

I don't understand the problem. Please elaborate.

@cassandracomar
Copy link

the calling workflow needs to be triggered by a pull_request_target event in order for this to work. github.event.pull_request isn't set for push events.

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

3 participants