Skip to content

Changes Made Through Previous Job Not Applying To Created Branch #388

@harnerdesigns

Description

@harnerdesigns

Hello,

This might be a bit of a specific issue and maybe I'm just doing something totally wrong.

I'm building a template repo for a client to re-use and have an init action ('fetchLive') that fetches code, modifies that code, and pushes a new commit to the 'main' branch in the repo with the modified code. That all works fine, but then I go to create a couple new branches in a second job ('createBranches') within the same action.

image

The 'action-create-branch' step creates the branches but 1 commit behind 'main', not getting the changes made in the first 'fetchLive' job in the action.

image

I know there's the SHA parameter on the action that I can specify. Do I need to have the first 'change' job pass the commit SHA to the "make-branches" job, or is there any easier way to just say "grab latest commit on 'main' and use that".

I'd appreciate any insight you can provide! Thanks!

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