Skip to content

Action might not be waiting for right commit #77

@Cameronsplaze

Description

@Cameronsplaze

We have three branches in our normal workflow, devel -> test -> prod.
Other branches exist, (for me, branch 'cameron'), and I'm writing an workflow that if 'cameron' has a pr directly to prod, it'll open pr's to devel/test first. I need to wait for test to pass, and only if 'test' branch passes, pass the prod PR. (That's where I'm using this action).

RIght now, in your action debug, it's waiting for the last time test was merged to prod, NOT the pr that's open from cameron to prod (the pr that triggered the action). Am I doing something wrong? Is there a way to tell your action to wait for a specific commit? It's finding a commit, but not able to find any status's of the commit, so it skips/passes itself.

The action is here https://github.com/asfadmin/Discovery-WKTUtils/pull/315/checks?check_run_id=2889412835. It runs your action twice, both times looking for commit 2cda8ab4ad88821cc7c6e7b351b62b58303b8827. If you look at the commits, that commit was the last time test was merged into prod, NOT the PR that is cameron into prod, which is the PR that triggers the action (should be d357597ff7b03a500e00583df801ae13b278ec9e I think?).

Any idea what might be going on here? I'm confused. Thanks a ton in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions