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

support: Unable to locate executable file: git. #1068

Open
3 tasks done
jasperjanuar opened this issue Feb 6, 2024 · 0 comments
Open
3 tasks done

support: Unable to locate executable file: git. #1068

jasperjanuar opened this issue Feb 6, 2024 · 0 comments
Assignees
Labels
support User support

Comments

@jasperjanuar
Copy link

Checklist

  • I am using the latest version of this action.
  • I have read the latest README and followed the instructions.
  • I have read the latest GitHub Actions official documentation and learned the basic spec and concepts.

Describe your question

I get the following error
[INFO] Unable to locate executable file: git. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

Relevant links

yaml workflow:

name: E2E Develop test

on:
  push:
    branches:
      - main
  schedule:
    - cron: '0 2 * * MON-FRI'
  workflow_run:
    workflows: [Wait for dev deploy]
    types:
      - completed


permissions:
  contents: write

jobs:
  run-e2e:
    runs-on: runner-dev
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      # Install NPM dependencies, cache them correctly
      # and run all Cypress tests
      - name: Install yarn and cypress dependencies
        run: |
          sudo apt-get update && 
          sudo apt-get install curl -y && 
          curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash &&
          curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null &&
          echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list &&
          sudo apt-get update && sudo apt-get install yarn -y &&
          echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections &&
          sudo apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb

      - name: Replace client secret
        run: |
          sed -i'' -e 's/REPLACE_WITH_CLIENT_SECRET/${{ secrets.AUTH0_CLIENT_SECRET_INTEGRATION }}/g' cypress.config.ts

      - name: Cypress run
        uses: cypress-io/github-action@v6
        env:
          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
        with:
          config-file: cypress.config.ts
          command: yarn cy:start:ci:dev

      - name: Deploy report page
        uses: peaceiris/actions-gh-pages@v3
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./cypress/reports
          destination_dir: dev
          user_name: 'github-actions[bot]'
          user_email: 'github-actions[bot]@users.noreply.github.com'

Relevant log output

Log output

Run peaceiris/actions-gh-pages@v3
  with:
    github_token: ***
    publish_dir: ./cypress/reports
    destination_dir: dev
    user_name: github-actions[bot]
    user_email: github-actions[bot]@users.noreply.github.com
    publish_branch: gh-pages
    allow_empty_commit: false
    keep_files: false
    force_orphan: false
    enable_jekyll: false
    disable_nojekyll: false
    exclude_assets: .github
  env:
    CI: 1
    CYPRESS_CACHE_FOLDER: /home/runner/.cache/Cypress
    npm_config_cache: /home/runner/.npm
    TERM: xterm
[INFO] Usage https://github.com/peaceiris/actions-gh-pages#readme
Dump inputs
  [INFO] GithubToken: true
  [INFO] PublishBranch: gh-pages
  [INFO] PublishDir: ./cypress/reports
  [INFO] DestinationDir: dev
  [INFO] ExternalRepository: 
  [INFO] AllowEmptyCommit: false
  [INFO] KeepFiles: false
  [INFO] ForceOrphan: false
  [INFO] UserName: github-actions[bot]
  [INFO] UserEmail: github-actions[bot]@users.noreply.github.com
  [INFO] CommitMessage: 
  [INFO] FullCommitMessage: 
  [INFO] TagName: 
  [INFO] TagMessage: 
  [INFO] EnableJekyll (DisableNoJekyll): false
  [INFO] CNAME: 
  [INFO] ExcludeAssets .github
  
Setup auth token
  [INFO] setup GITHUB_TOKEN
Prepare publishing assets
  [INFO] ForceOrphan: false
  [INFO] first deployment, create new branch gh-pages
  [INFO] Unable to locate executable file: git. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
  [INFO] chdir /home/runner/actions_github_pages_1707221697799
  Error: Action failed with "Unable to locate executable file: git. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

Additional context.

No response

@jasperjanuar jasperjanuar added the support User support label Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support User support
Projects
None yet
Development

No branches or pull requests

2 participants