workflow depends on its target repo rather than on cloned repo
See original GitHub issueBug 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
- create repository like game-builds (in my case https://github.com/neonknights/scheme-website)
- create another one with game itself (private)
- in game-build repo create new workflow (like that: https://github.com/neonKnights/sCHEMe-website/blob/main/.github/workflows/release-package.yml)
- in workflow, checkout code from
game
repo - run unity build
- workflow fails https://github.com/neonKnights/sCHEMe-website/runs/5437854707?check_suite_focus=true
Expected behavior
unity-builder should depend on currently cloned repo
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@webbertakken thank you for your answer! The failure says:
c09a448c944ac1649eaafe09dd70eb4691214ed6
is top commit of my sCHEMe-website repository, but the other one is checked outYou’re very welcome. Thank you as well!