BETA

Skip links

  • Skip to primary navigation
  • Skip to content
  • Skip to footer
Queensland government logo Queensland government logo
Sign in Sign out
Sign in
  • Profile summary
  • Sign out
Department of Education Department of Education Developer Portal
  • Home
  • Tags
  • Chat
  • Beta
    APIs
  • SDLC
  • Help
  • Contact us
  • Dark mode
  • Home
  • Tags
  • Chat
  • Beta
    APIs
  • SDLC
  • Help
  • Contact us
  • My profile
  • Dark mode

Copy folder repo import

Imported content
GitHub repository
Source published NA
Source updated NA
Imported 6 February 2026
auto-import Technology
Imported content
auto-import Technology

copy_folder_to_another_repo_action

This GitHub Action copies a folder from the current repository to a location in another repository.

Example Workflow

name: Push File

on: push

jobs:
  copy-file:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
      uses: actions/checkout@v2

    - name: Pushes test folder
      uses: crykn/copy_folder_to_another_repo_action@v1.0.6
      env:
        API_TOKEN_GITHUB: $
      with:
        source_folder: 'test_files'
        destination_repo: 'dmnemec/release-test'
        destination_folder: 'test-dir'
        user_email: 'devin.nemec@gmail.com'
        user_name: 'dmnemec'
        commit_msg: '[GHA] Update the test files.'

Variables

  • source_folder: The folder to be moved.
  • destination_repo: The repository to place the folder in.
  • destination_folder: [optional] The folder in the destination repository to place the file in, if not the root directory.
  • user_email: The GitHub user email associated with the API token secret.
  • user_name: The GitHub username associated with the API token secret.
  • destination_branch: [optional] The branch of the destination repo to base the changes on and push to (defaults to master).
  • destination_branch_create: [optional] The branch the changes should be pushed to; defaults to committing to destination_branch; is useful for creating PRs.
  • commit_msg: [optional] The commit message to use.

Behavior Notes

The action will remove the destination folder before recreating it to place any copied files in it.

Powered by Link to AI chat
  • Copyright
  • Disclaimer
  • Privacy
  • Right to information
  • Accessibility
  • Jobs in Queensland Government
  • Other languages

© The State of Queensland (Department of Education) 2026

Queensland Government