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

Job failing with ambiguous argument 'origin/refs/heads/master': unknown revision or path not in the working tree. #26

Open
ItsSunnyMonster opened this issue Jul 27, 2024 · 0 comments

Comments

@ItsSunnyMonster
Copy link

Here's the link to the failed run with debug logging enabled: https://github.com/ItsSunnyMonster/merge/actions/runs/10119347055/job/27987710478

Here's the logs from the job with debug logging enabled (should also be available in the link above)

##[debug]Evaluating condition for step: 'Build and deploy docs'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Build and deploy docs
##[debug]Loading inputs
##[debug]Evaluating: secrets.GITHUB_TOKEN
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'GITHUB_TOKEN'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Loading env
Run sauloxd/review-apps@v[2](https://github.com/ItsSunnyMonster/merge/actions/runs/10119347055/job/27987710478#step:4:2).0.0
##[debug]CALL run
##[debug]WITH []
-> Review Apps start!
-> Your input: 
-> Validating user input
-> {
  "dist": "dist",
  "slug": "review-apps",
  "ghPagesBranch": "gh-pages",
  "buildCmd": "",
  "githubToken": "***",
  "skipIndexHtml": false,
  "tmpDir": ".tmp-review-apps",
  "apps": [
    {
      "slug": "docs",
      "build": "cargo doc --no-deps",
      "dist": "target/doc/merge"
    }
  ]
}
/usr/bin/git --version
git version 2.45.2
/usr/bin/git config --global user.name ReviewApps admin
/usr/bin/git config --global user.email [email protected]
/usr/bin/git config pull.rebase true
/usr/bin/echo .tmp-review-apps >> .git/info/exclude
.tmp-review-apps >> .git/info/exclude
##[debug]CALL syncApps
##[debug]WITH [
##[debug]  {
##[debug]    "repository": {
##[debug]      "name": "merge",
##[debug]      "owner": "ItsSunnyMonster"
##[debug]    },
##[debug]    "branch": {
##[debug]      "name": "refs/heads/master",
##[debug]      "headCommit": "f6a[3](https://github.com/ItsSunnyMonster/merge/actions/runs/10119347055/job/27987710478#step:4:3)f7cc9dad1853bfce46de3785f1d0ee679da9",
##[debug]      "pullRequest": {}
##[debug]    }
##[debug]  }
##[debug]]

    -> Your apps will be hosted in github pages:
    -> "https://ItsSunnyMonster.github.io/merge"
  
/usr/bin/git fetch origin refs/heads/master
From https://github.com/ItsSunnyMonster/merge
 * branch            master     -> FETCH_HEAD
/usr/bin/git checkout -f refs/heads/master
Note: switching to 'refs/heads/master'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at f6a3f7c ci: fix rust toolchain
/usr/bin/git reset --hard origin/refs/heads/master
fatal: ambiguous argument 'origin/refs/heads/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Error: FAILED syncApps
##[debug]The process '/usr/bin/git' failed with exit code 128
Error: FAILED run
##[debug]The process '/usr/bin/git' failed with exit code 128

/home/runner/work/_actions/sauloxd/review-apps/v2.0.0/packages/action/webpack:/node_modules/@actions/exec/lib/toolrunner.js:592
                error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`);
^
Error: The process '/usr/bin/git' failed with exit code 128
    at ExecState._setResult (/home/runner/work/_actions/sauloxd/review-apps/v2.0.0/packages/action/webpack:/node_modules/@actions/exec/lib/toolrunner.js:592:1)
    at ExecState.CheckComplete (/home/runner/work/_actions/sauloxd/review-apps/v2.0.0/packages/action/webpack:/node_modules/@actions/exec/lib/toolrunner.js:575:1)
    at ChildProcess.<anonymous> (/home/runner/work/_actions/sauloxd/review-apps/v2.0.0/packages/action/webpack:/node_modules/@actions/exec/lib/toolrunner.js:[4](https://github.com/ItsSunnyMonster/merge/actions/runs/10119347055/job/27987710478#step:4:4)69:1)
    at ChildProcess.emit (node:events:[5](https://github.com/ItsSunnyMonster/merge/actions/runs/10119347055/job/27987710478#step:4:5)19:28)
    at maybeClose (node:internal/child_process:1105:1[6](https://github.com/ItsSunnyMonster/merge/actions/runs/10119347055/job/27987710478#step:4:6))
    at Process.ChildProcess._handle.onexit (node:internal/child_process:305:5)
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Build and deploy docs
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