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

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

Open
chenele opened this issue Nov 12, 2023 · 0 comments
Open

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

chenele opened this issue Nov 12, 2023 · 0 comments

Comments

@chenele
Copy link

chenele commented Nov 12, 2023

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

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

1 participant