question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

workflow depends on its target repo rather than on cloned repo

See original GitHub issue

Bug description

Hi! I created a workflow that pulls the code from some private repository and uploads assets to the public one (the repository workflow is running on). the problem is that some git commands in unity-builder reffers to workflow’s base repository commits

How to reproduce

Expected behavior

unity-builder should depend on currently cloned repo

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gucio321commented, Mar 6, 2022

@webbertakken thank you for your answer! The failure says:

Warning: fatal: c09a448c944ac1649eaafe09dd70eb4691214ed6 is neither a commit nor blob

Error: Failed to run "git describe --long --tags --always c09a448c944ac1649eaafe09dd70eb4691214ed6".
 In-command error caught: Error: The process '/usr/bin/git' failed with exit code 128

c09a448c944ac1649eaafe09dd70eb4691214ed6 is top commit of my sCHEMe-website repository, but the other one is checked out

0reactions
webbertakkencommented, Mar 7, 2022

You’re very welcome. Thank you as well!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trigger a workflow of another repository and get the artifacts
The repository has an action that performs a workflow and uploads an artifact (HTML). I have ten more private repositories named "Dev Repos" ......
Read more >
Github action build chain. Cross-repo builds
It checks out the current project and reads the workflow information from the YAML file triggering the job. It merges the TARGET_GROUP:PROJECT:TARGET_BRANCH ...
Read more >
GitHub Actions Security Best Practices [cheat sheet included]
The 'pull_request_target' trigger runs in the context of your target repo, meaning the workflow has access to YOUR secrets and write access to ......
Read more >
git clone | Atlassian Git Tutorial
Git clone is a Git command line utility used to target and create a copy of the target repository. Learn extended configuration options...
Read more >
git-clone Documentation - Git
Force the cloning process from a repository on a local filesystem to copy the files under the .git/objects directory instead of using hardlinks....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found