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

[BUG] Latest release causes specific sha to not be found #1010

Closed
3 tasks done
GodVenn opened this issue Mar 9, 2023 · 4 comments
Closed
3 tasks done

[BUG] Latest release causes specific sha to not be found #1010

GodVenn opened this issue Mar 9, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@GodVenn
Copy link

GodVenn commented Mar 9, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Does this issue exist in the latest version?

  • I'm using the latest release

Describe the bug?

Here is an image of the failure.
This has been running successfully since we started using the action in January.
I double checked the sha it cannot find, and it is the sha of the latest commit on the pull request.

image

Here is an image of the workflow:
image

To Reproduce

  1. Run a workflow using this action with the sha of a pull request on trigger for pull_request

What OS are you seeing the problem on?

ubuntu-latest or ubuntu-20.04

Expected behavior?

It should recognize the sha in the pull request.
I suspect it is looking in main instead.

Relevant log output

Run tj-actions/changed-files@v35
Run # "Calculating the previous and current SHA..."
changed-files-diff-sha
  Verifying git version...
  Valid git version found: (2.39.2)
  Running on a pull request event...
  Fetching remote refs...
  remote: Enumerating objects: 640, done.        
  remote: Counting objects:   0% (1/640)        
  remote: Counting objects:   1% (7/640)        
  remote: Counting objects:   2% (13/640)        
  remote: Counting objects:   3% (20/640)        
  remote: Counting objects:   4% (26/640)        
  remote: Counting objects:   5% (32/640)        
  remote: Counting objects:   6% (39/640)        
  remote: Counting objects:   7% (45/640)        
  remote: Counting objects:   8% (52/640)        
  remote: Counting objects:   9% (58/640)        
  remote: Counting objects:  10% (64/640)        
  remote: Counting objects:  11% (71/640)        
  remote: Counting objects:  12% (77/640)        
  remote: Counting objects:  13% (84/640)        
  remote: Counting objects:  14% (90/640)        
  remote: Counting objects:  15% (96/640)        
  remote: Counting objects:  16% (103/640)        
  remote: Counting objects:  17% (109/640)        
  remote: Counting objects:  18% (116/640)        
  remote: Counting objects:  19% (122/640)        
  remote: Counting objects:  20% (128/640)        
  remote: Counting objects:  21% (135/640)        
  remote: Counting objects:  22% (141/640)        
  remote: Counting objects:  23% (148/640)        
  remote: Counting objects:  24% (154/640)        
  remote: Counting objects:  25% (160/640)        
  remote: Counting objects:  26% (167/640)        
  remote: Counting objects:  27% (173/640)        
  remote: Counting objects:  28% (180/640)        
  remote: Counting objects:  29% (186/640)        
  remote: Counting objects:  30% (192/640)        
  remote: Counting objects:  31% (199/640)        
  remote: Counting objects:  32% (205/640)        
  remote: Counting objects:  33% (212/640)        
  remote: Counting objects:  34% (218/640)        
  remote: Counting objects:  35% (224/640)        
  remote: Counting objects:  36% (231/640)        
  remote: Counting objects:  37% (237/640)        
  remote: Counting objects:  38% (244/640)        
  remote: Counting objects:  39% (250/640)        
  remote: Counting objects:  40% (256/640)        
  remote: Counting objects:  41% (263/640)        
  remote: Counting objects:  42% (269/640)        
  remote: Counting objects:  43% (276/640)        
  remote: Counting objects:  44% (282/640)        
  remote: Counting objects:  45% (288/640)        
  remote: Counting objects:  46% (295/640)        
  remote: Counting objects:  47% (301/640)        
  remote: Counting objects:  48% (308/640)        
  remote: Counting objects:  49% (314/640)        
  remote: Counting objects:  50% (320/640)        
  remote: Counting objects:  51% (327/640)        
  remote: Counting objects:  52% (333/640)        
  remote: Counting objects:  53% (340/640)        
  remote: Counting objects:  54% (346/640)        
  remote: Counting objects:  55% (352/640)        
  remote: Counting objects:  56% (359/640)        
  remote: Counting objects:  57% (365/640)        
  remote: Counting objects:  58% (372/640)        
  remote: Counting objects:  59% (378/640)        
  remote: Counting objects:  60% (384/640)        
  remote: Counting objects:  61% (391/640)        
  remote: Counting objects:  62% (397/640)        
  remote: Counting objects:  63% (404/640)        
  remote: Counting objects:  64% (410/640)        
  remote: Counting objects:  65% (416/640)        
  remote: Counting objects:  66% (423/640)        
  remote: Counting objects:  67% (429/640)        
  remote: Counting objects:  68% (436/640)        
  remote: Counting objects:  69% (442/640)        
  remote: Counting objects:  70% (448/640)        
  remote: Counting objects:  71% (455/640)        
  remote: Counting objects:  72% (461/640)        
  remote: Counting objects:  73% (468/640)        
  remote: Counting objects:  74% (474/640)        
  remote: Counting objects:  75% (480/640)        
  remote: Counting objects:  76% (487/640)        
  remote: Counting objects:  77% (493/640)        
  remote: Counting objects:  78% (500/640)        
  remote: Counting objects:  79% (506/640)        
  remote: Counting objects:  80% (512/640)        
  remote: Counting objects:  81% (519/640)        
  remote: Counting objects:  82% (525/640)        
  remote: Counting objects:  83% (532/640)        
  remote: Counting objects:  84% (538/640)        
  remote: Counting objects:  85% (544/640)        
  remote: Counting objects:  86% (551/640)        
  remote: Counting objects:  87% (557/640)        
  remote: Counting objects:  88% (564/640)        
  remote: Counting objects:  89% (570/640)        
  remote: Counting objects:  90% (576/640)        
  remote: Counting objects:  91% (583/640)        
  remote: Counting objects:  92% (589/640)        
  remote: Counting objects:  93% (596/640)        
  remote: Counting objects:  94% (602/640)        
  remote: Counting objects:  95% (608/640)        
  remote: Counting objects:  96% (615/640)        
  remote: Counting objects:  97% (621/640)        
  remote: Counting objects:  98% (628/640)        
  remote: Counting objects:  99% (634/640)        
  remote: Counting objects: 100% (640/640)        
  remote: Counting objects: 100% (640/640), done.        
  remote: Compressing objects:   0% (1/314)        
  remote: Compressing objects:   1% (4/314)        
  remote: Compressing objects:   2% (7/314)        
  remote: Compressing objects:   3% (10/314)        
  remote: Compressing objects:   4% (13/314)        
  remote: Compressing objects:   5% (16/314)        
  remote: Compressing objects:   6% (19/314)        
  remote: Compressing objects:   7% (22/314)        
  remote: Compressing objects:   8% (26/314)        
  remote: Compressing objects:   9% (29/314)        
  remote: Compressing objects:  10% (32/314)        
  remote: Compressing objects:  11% (35/314)        
  remote: Compressing objects:  12% (38/314)        
  remote: Compressing objects:  13% (41/314)        
  remote: Compressing objects:  14% (44/314)        
  remote: Compressing objects:  15% (48/314)        
  remote: Compressing objects:  16% (51/314)        
  remote: Compressing objects:  17% (54/314)        
  remote: Compressing objects:  18% (57/314)        
  remote: Compressing objects:  19% (60/314)        
  remote: Compressing objects:  20% (63/314)        
  remote: Compressing objects:  21% (66/314)        
  remote: Compressing objects:  22% (70/314)        
  remote: Compressing objects:  23% (73/314)        
  remote: Compressing objects:  24% (76/314)        
  remote: Compressing objects:  25% (79/314)        
  remote: Compressing objects:  26% (82/314)        
  remote: Compressing objects:  27% (85/314)        
  remote: Compressing objects:  28% (88/314)        
  remote: Compressing objects:  29% (92/314)        
  remote: Compressing objects:  30% (95/314)        
  remote: Compressing objects:  31% (98/314)        
  remote: Compressing objects:  32% (101/314)        
  remote: Compressing objects:  33% (104/314)        
  remote: Compressing objects:  34% (107/314)        
  remote: Compressing objects:  35% (110/314)        
  remote: Compressing objects:  36% (114/314)        
  remote: Compressing objects:  37% (117/314)        
  remote: Compressing objects:  38% (120/314)        
  remote: Compressing objects:  39% (123/314)        
  remote: Compressing objects:  40% (126/314)        
  remote: Compressing objects:  41% (129/314)        
  remote: Compressing objects:  42% (132/314)        
  remote: Compressing objects:  43% (136/314)        
  remote: Compressing objects:  44% (139/314)        
  remote: Compressing objects:  45% (142/314)        
  remote: Compressing objects:  46% (145/314)        
  remote: Compressing objects:  47% (148/314)        
  remote: Compressing objects:  48% (151/314)        
  remote: Compressing objects:  49% (154/314)        
  remote: Compressing objects:  50% (157/314)        
  remote: Compressing objects:  51% (161/314)        
  remote: Compressing objects:  52% (164/314)        
  remote: Compressing objects:  53% (167/314)        
  remote: Compressing objects:  54% (170/314)        
  remote: Compressing objects:  55% (173/314)        
  remote: Compressing objects:  56% (176/314)        
  remote: Compressing objects:  57% (179/314)        
  remote: Compressing objects:  58% (183/314)        
  remote: Compressing objects:  59% (186/314)        
  remote: Compressing objects:  60% (189/314)        
  remote: Compressing objects:  61% (192/314)        
  remote: Compressing objects:  62% (195/314)        
  remote: Compressing objects:  63% (198/314)        
  remote: Compressing objects:  64% (201/314)        
  remote: Compressing objects:  65% (205/314)        
  remote: Compressing objects:  66% (208/314)        
  remote: Compressing objects:  67% (211/314)        
  remote: Compressing objects:  68% (214/314)        
  remote: Compressing objects:  69% (217/314)        
  remote: Compressing objects:  70% (220/314)        
  remote: Compressing objects:  71% (223/314)        
  remote: Compressing objects:  72% (227/314)        
  remote: Compressing objects:  73% (230/314)        
  remote: Compressing objects:  74% (233/314)        
  remote: Compressing objects:  75% (236/314)        
  remote: Compressing objects:  76% (239/314)        
  remote: Compressing objects:  77% (242/314)        
  remote: Compressing objects:  78% (245/314)        
  remote: Compressing objects:  79% (249/314)        
  remote: Compressing objects:  80% (252/314)        
  remote: Compressing objects:  81% (255/314)        
  remote: Compressing objects:  82% (258/314)        
  remote: Compressing objects:  83% (261/314)        
  remote: Compressing objects:  84% (264/314)        
  remote: Compressing objects:  85% (267/314)        
  remote: Compressing objects:  86% (271/314)        
  remote: Compressing objects:  87% (274/314)        
  remote: Compressing objects:  88% (277/314)        
  remote: Compressing objects:  89% (280/314)        
  remote: Compressing objects:  90% (283/314)        
  remote: Compressing objects:  91% (286/314)        
  remote: Compressing objects:  92% (289/314)        
  remote: Compressing objects:  93% (293/314)        
  remote: Compressing objects:  94% (296/314)        
  remote: Compressing objects:  95% (299/314)        
  remote: Compressing objects:  96% (302/314)        
  remote: Compressing objects:  97% (305/314)        
  remote: Compressing objects:  98% (308/314)        
  remote: Compressing objects:  99% (311/314)        
  remote: Compressing objects: 100% (314/314)        
  remote: Compressing objects: 100% (314/314), done.        
  Receiving objects:   0% (1/541)
  Receiving objects:   1% (6/541)
  Receiving objects:   2% (11/541)
  Receiving objects:   3% (17/541)
  Receiving objects:   4% (22/541)
  Receiving objects:   5% (28/541)
  Receiving objects:   6% (33/541)
  Receiving objects:   7% (38/541)
  Receiving objects:   8% (44/541)
  Receiving objects:   9% (49/541)
  Receiving objects:  10% (55/541)
  Receiving objects:  11% (60/541)
  Receiving objects:  12% (65/541)
  Receiving objects:  13% (71/541)
  Receiving objects:  14% (76/541)
  Receiving objects:  15% (82/541)
  Receiving objects:  16% (87/541)
  Receiving objects:  17% (92/541)
  Receiving objects:  18% (98/541)
  Receiving objects:  19% (103/541)
  Receiving objects:  20% (109/541)
  Receiving objects:  21% (114/541)
  Receiving objects:  22% (120/541)
  Receiving objects:  23% (125/541)
  Receiving objects:  24% (130/541)
  Receiving objects:  25% (136/541)
  Receiving objects:  26% (141/541)
  Receiving objects:  27% (147/541)
  Receiving objects:  28% (152/541)
  Receiving objects:  29% (157/541)
  Receiving objects:  30% (163/541)
  Receiving objects:  31% (168/541)
  Receiving objects:  32% (174/541)
  Receiving objects:  33% (179/541)
  Receiving objects:  34% (184/541)
  Receiving objects:  35% (190/541)
  Receiving objects:  36% (195/541)
  Receiving objects:  37% (201/541)
  Receiving objects:  38% (206/541)
  Receiving objects:  39% (211/541)
  Receiving objects:  40% (217/541)
  Receiving objects:  41% (222/541)
  Receiving objects:  42% (228/541)
  Receiving objects:  43% (233/541)
  Receiving objects:  44% (239/541)
  Receiving objects:  45% (244/541)
  Receiving objects:  46% (249/541)
  Receiving objects:  47% (255/541)
  Receiving objects:  48% (260/541)
  Receiving objects:  49% (266/541)
  Receiving objects:  50% (271/541)
  Receiving objects:  51% (276/541)
  Receiving objects:  52% (282/541)
  Receiving objects:  53% (287/541)
  Receiving objects:  54% (293/541)
  Receiving objects:  55% (298/541)
  Receiving objects:  56% (303/541)
  Receiving objects:  57% (309/541)
  Receiving objects:  58% (314/541)
  Receiving objects:  59% (320/541)
  Receiving objects:  60% (325/541)
  Receiving objects:  61% (331/541)
  Receiving objects:  62% (336/541)
  Receiving objects:  63% (341/541)
  Receiving objects:  64% (347/541)
  Receiving objects:  65% (352/541)
  Receiving objects:  66% (358/541)
  Receiving objects:  67% (363/541)
  Receiving objects:  68% (368/541)
  Receiving objects:  69% (374/541)
  Receiving objects:  70% (379/541)
  Receiving objects:  71% (385/541)
  Receiving objects:  72% (390/541)
  Receiving objects:  73% (395/541)
  Receiving objects:  74% (401/541)
  Receiving objects:  75% (406/541)
  Receiving objects:  76% (412/541)
  Receiving objects:  77% (417/541)
  Receiving objects:  78% (422/541)
  Receiving objects:  79% (428/541)
  Receiving objects:  80% (433/541)
  Receiving objects:  81% (439/541)
  Receiving objects:  82% (444/541)
  Receiving objects:  83% (450/541)
  Receiving objects:  84% (455/541)
  Receiving objects:  85% (460/541)
  Receiving objects:  86% (466/541)
  Receiving objects:  87% (471/541)
  Receiving objects:  88% (477/541)
  Receiving objects:  89% (482/541)
  Receiving objects:  90% (487/541)
  Receiving objects:  91% (493/541)
  Receiving objects:  92% (498/541)
  Receiving objects:  93% (504/541)
  Receiving objects:  94% (509/541)
  Receiving objects:  95% (514/541)
  Receiving objects:  96% (520/541)
  Receiving objects:  97% (525/541)
  remote: Total 541 (delta 385), reused 346 (delta 221), pack-reused 0        
  Receiving objects:  98% (531/541)
  Receiving objects:  99% (536/541)
  Receiving objects: 100% (541/541)
  Receiving objects: 100% (541/541), 66.50 KiB | 1.28 MiB/s, done.
  Resolving deltas:   0% (0/385)
  Resolving deltas:   1% (4/385)
  Resolving deltas:   2% (8/385)
  Resolving deltas:   3% (12/385)
  Resolving deltas:   4% (16/385)
  Resolving deltas:   5% (20/385)
  Resolving deltas:   6% (24/385)
  Resolving deltas:   7% (27/385)
  Resolving deltas:   8% (31/385)
  Resolving deltas:   9% (35/385)
  Resolving deltas:  10% (39/385)
  Resolving deltas:  11% (43/385)
  Resolving deltas:  12% (47/385)
  Resolving deltas:  13% (51/385)
  Resolving deltas:  14% (54/385)
  Resolving deltas:  15% (58/385)
  Resolving deltas:  16% (62/385)
  Resolving deltas:  17% (66/385)
  Resolving deltas:  18% (70/385)
  Resolving deltas:  19% (74/385)
  Resolving deltas:  20% (77/385)
  Resolving deltas:  21% (81/385)
  Resolving deltas:  22% (85/385)
  Resolving deltas:  23% (89/385)
  Resolving deltas:  24% (93/385)
  Resolving deltas:  25% (97/385)
  Resolving deltas:  26% (101/385)
  Resolving deltas:  27% (104/385)
  Resolving deltas:  28% (108/385)
  Resolving deltas:  29% (112/385)
  Resolving deltas:  30% (116/385)
  Resolving deltas:  31% (120/385)
  Resolving deltas:  32% (124/385)
  Resolving deltas:  33% (128/385)
  Resolving deltas:  34% (131/385)
  Resolving deltas:  35% (135/385)
  Resolving deltas:  36% (139/385)
  Resolving deltas:  37% (143/385)
  Resolving deltas:  38% (147/385)
  Resolving deltas:  39% (151/385)
  Resolving deltas:  40% (154/385)
  Resolving deltas:  41% (158/385)
  Resolving deltas:  42% (162/385)
  Resolving deltas:  43% (166/385)
  Resolving deltas:  44% (170/385)
  Resolving deltas:  45% (174/385)
  Resolving deltas:  46% (178/385)
  Resolving deltas:  47% (181/385)
  Resolving deltas:  48% (185/385)
  Resolving deltas:  49% (189/385)
  Resolving deltas:  50% (193/385)
  Resolving deltas:  51% (197/385)
  Resolving deltas:  52% (201/385)
  Resolving deltas:  53% (205/385)
  Resolving deltas:  54% (208/385)
  Resolving deltas:  55% (212/385)
  Resolving deltas:  56% (216/385)
  Resolving deltas:  57% (220/385)
  Resolving deltas:  58% (224/385)
  Resolving deltas:  59% (228/385)
  Resolving deltas:  60% (231/385)
  Resolving deltas:  61% (235/385)
  Resolving deltas:  62% (239/385)
  Resolving deltas:  63% (243/385)
  Resolving deltas:  64% (247/385)
  Resolving deltas:  65% (251/385)
  Resolving deltas:  66% (255/385)
  Resolving deltas:  67% (258/385)
  Resolving deltas:  68% (262/385)
  Resolving deltas:  69% (266/385)
  Resolving deltas:  70% (270/385)
  Resolving deltas:  71% (274/385)
  Resolving deltas:  72% (278/385)
  Resolving deltas:  73% (282/385)
  Resolving deltas:  74% (285/385)
  Resolving deltas:  75% (289/385)
  Resolving deltas:  76% (293/385)
  Resolving deltas:  77% (297/385)
  Resolving deltas:  78% (301/385)
  Resolving deltas:  79% (305/385)
  Resolving deltas:  80% (308/385)
  Resolving deltas:  81% (312/385)
  Resolving deltas:  82% (316/385)
  Resolving deltas:  83% (320/385)
  Resolving deltas:  84% (324/385)
  Resolving deltas:  85% (328/385)
  Resolving deltas:  86% (332/385)
  Resolving deltas:  87% (335/385)
  Resolving deltas:  88% (339/385)
  Resolving deltas:  89% (343/385)
  Resolving deltas:  90% (347/385)
  Resolving deltas:  91% (351/385)
  Resolving deltas:  92% (355/385)
  Resolving deltas:  93% (359/385)
  Resolving deltas:  94% (362/385)
  Resolving deltas:  95% (366/385)
  Resolving deltas:  96% (370/385)
  Resolving deltas:  97% (374/385)
  Resolving deltas:  98% (378/385)
  Resolving deltas:  99% (382/385)
  Resolving deltas: 100% (385/385)
  Resolving deltas: 100% (385/385), completed with 81 local objects.
  fatal: a branch named 'main' already exists
  Error: Unable to locate the current sha: 8d95ce2ea3d32f9a07bb5bb743f3b952f3f151d8
  Error: Please verify that current sha is valid, and increase the fetch_depth to a number higher than 50.
  Error: Process completed with exit code 1.

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@GodVenn GodVenn added the bug Something isn't working label Mar 9, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2023

Thanks for reporting this issue, don't forget to star this project if you haven't already to help us reach a wider audience.

@jackton1
Copy link
Member

jackton1 commented Mar 9, 2023

@GodVenn I'll recommend upgrading to the latest patch release. Let me know if the problem still persists and I'll reopen this issue.

Also wanted to note that the logs should be retrieved with debugging enabled and you'll also need to provide a more detailed workflow setup with the actions/checkout setting in order to replicate the error if this requires further debugging.

@jackton1 jackton1 closed this as completed Mar 9, 2023
@GodVenn
Copy link
Author

GodVenn commented Mar 9, 2023

Thanks for the quick reply, I will just keep our pipelines locked to 35.6.1 for now!

@GodVenn
Copy link
Author

GodVenn commented Mar 9, 2023

Very useful action btw, thanks for maintaining it! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants