Skip to content

Checkout Commit instead of latest tag (on release) #1541

Open
@chenele

Description

@chenele

Hi

There is a wierd behavior which looks like some kind of 'glitch' on github but as its not the first time wanted to raise it here.
there seems to be an issue with the exact same issue which was closed (#1431)

we have a flow of automatic release-deploy which being triggered while merging PR to master.
basically we have the following 2 workflows :

  • when PR merged to master --> Release flow executed and create a new release
  • when release created --> new Deploy flow executed and deploy the latest tag

it works like that for many microservices, but suddenly after release created and the deploy job triggered, the checkout phase checked out the latest commit on master instead the latest tag created.

the Event for the deploy job is:

on:
  release:
    types: [created]

and the checkout looks like that:

- uses: actions/checkout@v3
       with:
         fetch-depth: 0

is it just a 'glitch'?
anything we can do about it?

10x

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions