-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Trying to sync from a branch on the repo, and it won't find any files. The branch exists, and the git clone command printed in the logs works as expected when executed locally. The same setup works fine off of the main branch. No structural or directory changes exist between the two
Here's the action def:
SyncToPortal:
name: Sync Files to Dev Portal
runs-on: ubuntu-latest
steps:
- name: File Sync
uses: adrianjost/files-sync-action@v1.5.0
with:
COMMIT_MESSAGE: Update Synced Standards Docs from %SRC_REPO%
# SRC_REPO: ${{ github.repository }}:${{ github.ref_name }}
FILE_PATTERNS: |
^general/
TARGET_ROOT: /developer-portal/standards/
TARGET_REPOS: |
health/developer-portal
GITHUB_TOKEN: ${{ secrets.TOKEN }}
DRY_RUN: true
And the failing output:
Context: {
"COMMIT_MESSAGE": "Update Synced Standards Docs from %SRC_REPO%",
"DRY_RUN": true,
"FILE_PATTERNS": [
{}
],
"GITHUB_SERVER": "github.com",
"GITHUB_TOKEN": "<secret>",
"GIT_EMAIL": "joelhess@users.noreply.github.com",
"GIT_USERNAME": "joelhess",
"SKIP_CLEANUP": false,
"SKIP_DELETE": false,
"SKIP_REPLACE": false,
"SRC_REPO": "health/development_standards:ATP-503-REST-Api-documentation",
"SRC_ROOT": "/",
"TARGET_REPOS": [
"health/developer-portal"
],
"TARGET_ROOT": "/developer-portal/standards/",
"TMPDIR": "tmp-1638193377014"
}
health/development_standards:ATP-503-REST-Api-documentation: EXEC: "GIT_LFS_SKIP_SMUDGE=1 git clone --depth 1 -b ATP-503-REST-Api-documentation https://***@github.com/health/development_standards.git tmp-1638193377014/health/development_standards-ATP-503-REST-Api-documentation" IN "./"
health/development_standards:ATP-503-REST-Api-documentation: OUTPUT: "null"
health/development_standards:ATP-503-REST-Api-documentation: FILE_PATTERNS [
"/^general\\//"
]
health/development_standards:ATP-503-REST-Api-documentation: MATCHING FILES: []
health/developer-portal: EXEC: "GIT_LFS_SKIP_SMUDGE=1 git clone --depth 1 https://***@github.com/health/developer-portal.git tmp-1638193377014/health/developer-portal" IN "./"
health/developer-portal: OUTPUT: "null"
health/developer-portal: FILE_PATTERNS [
"/^general\\//"
]
health/developer-portal: MATCHING FILES: []
health/developer-portal: REMOVE FILES []
health/developer-portal: EXEC: "git status --porcelain" IN "tmp-1638193377014/health/developer-portal"
health/developer-portal: OUTPUT: "null"
health/developer-portal: NO CHANGES DETECTED
And the same output with the SRC_REPO commented out:
Context: {
"COMMIT_MESSAGE": "Update Synced Standards Docs from %SRC_REPO%",
"DRY_RUN": true,
"FILE_PATTERNS": [
{}
],
"GITHUB_SERVER": "github.com",
"GITHUB_TOKEN": "<secret>",
"GIT_EMAIL": "joelhess-icario@users.noreply.github.com",
"GIT_USERNAME": "joelhess",
"SKIP_CLEANUP": false,
"SKIP_DELETE": false,
"SKIP_REPLACE": false,
"SRC_REPO": "health/development_standards",
"SRC_ROOT": "/",
"TARGET_REPOS": [
"health/developer-portal"
],
"TARGET_ROOT": "/developer-portal/standards/",
"TMPDIR": "tmp-1638192990107"
}
health/development_standards: EXEC: "GIT_LFS_SKIP_SMUDGE=1 git clone --depth 1 https://***@github.com/health/development_standards.git tmp-1638192990107/health/development_standards" IN "./"
health/development_standards: OUTPUT: "null"
health/development_standards: FILE_PATTERNS [
"/^general\\//"
]
health/development_standards: MATCHING FILES: [
"general/coding_guidelines.md",
"general/logging_guidelines.md",
"general/readme_guidelines.md",
"general/repository_guidelines.md",
"general/testing_guidelines.md",
"general/images/branch_add_rule.png",
"general/images/branch_protection_rule.png",
"general/images/repository_settings.png",
"general/images/repository_settings_branches.png",
"general/setups/branch_protection_rules_setup.md"
]
health/developer-portal: EXEC: "GIT_LFS_SKIP_SMUDGE=1 git clone --depth 1 https://***@github.com/health/developer-portal.git tmp-1638192990107/health/developer-portal" IN "./"
health/developer-portal: OUTPUT: "null"
health/developer-portal: FILE_PATTERNS [
"/^general\\//"
]
health/developer-portal: MATCHING FILES: []
health/developer-portal: REMOVE FILES []
health/developer-portal: EXEC: "git status --porcelain" IN "tmp-1638192990107/health/developer-portal"
health/developer-portal: copy tmp-1638192990107/health/development_standards/general/coding_guidelines.md to tmp-1638192990107/health/developer-portal/developer-portal/standards/general/coding_guidelines.md
health/developer-portal: copy tmp-1638192990107/health/development_standards/general/logging_guidelines.md to tmp-1638192990107/health/developer-portal/developer-portal/standards/general/logging_guidelines.md
health/developer-portal: copy tmp-1638192990107/health/development_standards/general/readme_guidelines.md to tmp-1638192990107/health/developer-portal/developer-portal/standards/general/readme_guidelines.md
health/developer-portal: copy tmp-1638192990107/health/development_standards/general/repository_guidelines.md to tmp-1638192990107/health/developer-portal/developer-portal/standards/general/repository_guidelines.md
health/developer-portal: copy tmp-1638192990107/health/development_standards/general/testing_guidelines.md to tmp-1638192990107/health/developer-portal/developer-portal/standards/general/testing_guidelines.md
health/developer-portal: copy tmp-1638192990107/health/development_standards/general/images/branch_add_rule.png to tmp-1638192990107/health/developer-portal/developer-portal/standards/general/images/branch_add_rule.png
health/developer-portal: copy tmp-1638192990107/health/development_standards/general/images/branch_protection_rule.png to tmp-1638192990107/health/developer-portal/developer-portal/standards/general/images/branch_protection_rule.png
health/developer-portal: copy tmp-1638192990107/health/development_standards/general/images/repository_settings.png to tmp-1638192990107/health/developer-portal/developer-portal/standards/general/images/repository_settings.png
health/developer-portal: copy tmp-1638192990107/health/development_standards/general/images/repository_settings_branches.png to tmp-1638192990107/health/developer-portal/developer-portal/standards/general/images/repository_settings_branches.png
health/developer-portal: copy tmp-1638192990107/health/development_standards/general/setups/branch_protection_rules_setup.md to tmp-1638192990107/health/developer-portal/developer-portal/standards/general/setups/branch_protection_rules_setup.md
health/developer-portal: OUTPUT: "null"
health/developer-portal: NO CHANGES DETECTED
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working