Skip to content

Exclude is not workin in the v1.21.1 #346

@juergenbosch

Description

@juergenbosch

🐞 Describe the bug

I think the latest v1 release version is used if i defined:
uses: BetaHuhn/repo-file-sync-action@v1

In the sync.yaml i have defined this:

SAP-ProductCompliance/API_Testing_TEMPLATE_REPO:
  - source: karate/
    template:
      config:
        name: '<REPLACE_WITH_REPO_NAME>'
        description: '<REPLACE_WITH_REPO_DESCRIPTION>'
        apiBaseUrl: '<REPLACE_WITH_API_BASE_URL>'
        jenkinsViewName: '<REPLACE_WITH_JENKINS_VIEW_NAME>'
        apiHubNameCE: '<REPLACE_WITH_CE_API_HUB_NAME>'
        apiHubNameOP: '<REPLACE_WITH_OP_API_HUB_NAME>'
    dest: ./
    exclude: |
      Jenkinsfile
  - source: karate/Jenkinsfile
    dest: _Jenkinsfile

And the source files structure is:
image

The current outcome of the pull request in the target app looks like this:
image

📚 To reproduce

💡 Expected behavior

The "Jenkinsfile" should be in the target pull request as "_Jenkinsfile".

🖼️ Screenshots

No response

⚙️ Environment

v1.21.1

📋 Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions