Cyb3r-Jak3 / html5validator-action

GitHub Action that checks HTML5 syntax.
https://github.com/marketplace/actions/html5-validator
Mozilla Public License 2.0
42 stars 12 forks source link

Issue with git detecting repos #31

Closed SystemsUser closed 2 years ago

SystemsUser commented 2 years ago

Question

If there is an issue with your workflow then please include a log link or output as well as your full workflow config file

Hello there! I am having an issue where I am getting git repository not found. when I set the root to pages/. Is this incorrect? I am not sure how to fix this.

SystemsUser commented 2 years ago

/usr/bin/docker run --name bcf094ec6ed3337cd432db4f4b83765cb2cc9_e228e1 --label 2bcf09 --workdir /github/workspace --rm -e INPUT_ROOT -e INPUT_LOG_LEVEL -e INPUT_CSS -e INPUT_CONFIG -e INPUT_EXTRA -e INPUT_FORMAT -e INPUT_BLACKLIST -e INPUT_SKIP_GIT_CHECK -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e GITHUB_STEP_SUMMARY -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/research/research":"/github/workspace" 2bcf09:4ec6ed3337cd432db4f4b83765cb2cc9 Running Validator Error: There is no git respository detected

SystemsUser commented 2 years ago

# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
  # Triggers the workflow on push or pull request events but only for the main branch
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch: 

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  HTMLCHECK:
    runs-on: ubuntu-latest
    steps:
    - run: lsb_release -a
    - run: uname -a
    - uses: actions/checkout@v3
    - name: HTML5Validator
      uses: Cyb3r-Jak3/html5validator-action@master
      with:
          root: pages/
          log_level: INFO
          css: true
    - uses: actions/upload-artifact@v3
      with:
          name: log
          path: log.log
Cyb3r-Jak3 commented 2 years ago

This issue appears to have emerged in the past week. Last week's test showed no issues (Integration Test & Action Test) and this week's test failed (Integration Test & Action Test) when there have been no commits in that time span.

Those affected can revert to v0.6.1 with

  uses: Cyb3r-Jak3/html5validator-action@v0.6.1
Cyb3r-Jak3 commented 2 years ago

Appears to be related to https://github.com/actions/checkout/issues/760

Cyb3r-Jak3 commented 2 years ago

@SystemsUser Please try with version v7.1.1

SystemsUser commented 2 years ago

awesome ty :)

SystemsUser commented 2 years ago

thanks @Cyb3r-Jak3