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

[BUG] fetch_missing_history_max_retries when github api #2113

Closed
4 tasks done
timansky opened this issue May 29, 2024 · 1 comment · Fixed by #2114
Closed
4 tasks done

[BUG] fetch_missing_history_max_retries when github api #2113

timansky opened this issue May 29, 2024 · 1 comment · Fixed by #2114
Labels
bug Something isn't working

Comments

@timansky
Copy link

timansky commented May 29, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Does this issue exist in the latest version?

  • I'm using the latest release

Describe the bug?

There is always warning
Input "fetch_missing_history_max_retries" is not supported when using GitHub's REST API to get changed files

To Reproduce


jobs:
  get_changes:
    name: Get changes
    runs-on:
      - self-hosted
      - Linux
      - small
    outputs:
      yaml_changed: ${{ steps.changed-files.outputs.yaml_any_changed }}
      yaml_changed_list: ${{ steps.changed-files.outputs.yaml_all_changed_files }}
    steps:
      - name: Get changed files
        id: changed-files
        uses: actions-internal/action-synced-tj-changed-files@v44
        with:
          json: true
          files_yaml: |
            yaml:
            - '**.yml'
            - '**.yaml'
            - '!.github/**'

What OS are you seeing the problem on?

ubuntu-20.04

Expected behavior?

Run action without warning

Relevant log output

##[debug]Evaluating condition for step: 'Get changed files'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Get changed files
##[debug]Loading inputs
##[debug]Evaluating: github.token
##[debug]Evaluating Index:
##[debug]..Evaluating github:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'token'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Evaluating: github.api_url
##[debug]Evaluating Index:
##[debug]..Evaluating github:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'api_url'
##[debug]=> 'https://github-server/api/v3'
##[debug]Result: 'https://github-server/api/v3'
##[debug]Loading env
Run actions-internal/action-synced-tj-changed-files@v44
  with:
    json: true
    files_yaml: yaml:
  - '**.yml'
  - '**.yaml'
  - '!.github/**'
  
    separator:  
    include_all_old_new_renamed_files: false
    old_new_separator: ,
    old_new_files_separator:  
    files_from_source_file_separator: 
  
    files_separator: 
  
    files_yaml_from_source_file_separator: 
  
    files_ignore_yaml_from_source_file_separator: 
  
    files_ignore_separator: 
  
    files_ignore_from_source_file_separator: 
  
    path: .
    quotepath: true
    diff_relative: true
    dir_names: false
    dir_names_exclude_current_dir: false
    dir_names_include_files_separator: 
  
    dir_names_deleted_files_include_only_deleted_dirs: false
    escape_json: true
    safe_output: true
    fetch_depth: 25
    skip_initial_fetch: false
    fetch_additional_submodule_history: false
    since_last_remote_commit: false
    write_output_files: false
    output_dir: .github/outputs
    output_renamed_files_as_deleted_and_added: false
    recover_deleted_files: false
    recover_files_separator: 
  
    recover_files_ignore_separator: 
  
    token: ***
    api_url: https://github-server/api/v3
    use_rest_api: false
    fail_on_initial_diff_error: false
    fail_on_submodule_diff_error: false
    negation_patterns_first: false
    matrix: false
    exclude_submodules: false
    use_posix_path_separator: false
    tags_pattern: *
::group::changed-files
changed-files
changed-files-yaml-yaml
##[debug]modified_keys: ["yaml"]
##[debug]changed_keys: ["yaml"]
##[debug]Node Action run completed with exit code 0
##[debug]Set output yaml_added_files = [\"vector.yml\",\"roles/monitoring/test copy.yaml\"]
##[debug]Set output yaml_added_files_count = 2
##[debug]Set output yaml_copied_files = []
##[debug]Set output yaml_copied_files_count = 0
##[debug]Set output yaml_modified_files = [\".pre-commit-config.yaml\"]
##[debug]Set output yaml_modified_files_count = 1
##[debug]Set output yaml_renamed_files = []
##[debug]Set output yaml_renamed_files_count = 0
##[debug]Set output yaml_type_changed_files = []
##[debug]Set output yaml_type_changed_files_count = 0
##[debug]Set output yaml_unmerged_files = []
##[debug]Set output yaml_unmerged_files_count = 0
##[debug]Set output yaml_unknown_files = []
##[debug]Set output yaml_unknown_files_count = 0
##[debug]Set output yaml_all_changed_and_modified_files = [\"vector.yml\",\"roles/monitoring/test copy.yaml\",\".pre-commit-config.yaml\"]
##[debug]Set output yaml_all_changed_and_modified_files_count = 3
##[debug]Set output yaml_all_changed_files = [\"vector.yml\",\"roles/monitoring/test copy.yaml\",\".pre-commit-config.yaml\"]
##[debug]Set output yaml_all_changed_files_count = 3
##[debug]Set output yaml_any_changed = true
##[debug]Set output yaml_only_changed = false
##[debug]Set output yaml_other_changed_files = [\".github/scripts/yamllint-double-braces.sh\",\".github/workflows/checks.yml\"]
##[debug]Set output yaml_other_changed_files_count = 2
##[debug]Set output yaml_all_modified_files = [\"vector.yml\",\"roles/monitoring/test copy.yaml\",\".pre-commit-config.yaml\"]
##[debug]Set output yaml_all_modified_files_count = 3
##[debug]Set output yaml_any_modified = true
##[debug]Set output yaml_only_modified = false
##[debug]Set output yaml_other_modified_files = [\".github/scripts/yamllint-double-braces.sh\",\".github/workflows/checks.yml\"]
##[debug]Set output yaml_other_modified_files_count = 2
##[debug]Set output yaml_deleted_files = []
##[debug]Set output yaml_deleted_files_count = 0
##[debug]Set output yaml_any_deleted = false
##[debug]Set output yaml_only_deleted = false
##[debug]Set output yaml_other_deleted_files = []
##[debug]Set output yaml_other_deleted_files_count = 0
##[debug]Set output modified_keys = [\"yaml\"]
##[debug]Set output changed_keys = [\"yaml\"]
##[debug]Finishing: Get changed files

Has all relevant logs been included?

  • I've included all relevant logs

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@timansky timansky added the bug Something isn't working label May 29, 2024
@tj-actions-bot
Copy link
Contributor

Thanks for reporting this issue, don't forget to star this project if you haven't already to help us reach a wider audience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants