Coder Social home page Coder Social logo

bangank36 / copy_folder_to_another_repo_action Goto Github PK

View Code? Open in Web Editor NEW

This project forked from datalbry/copy_folder_to_another_repo_action

0.0 0.0 0.0 609 KB

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

License: Apache License 2.0

Shell 90.40% Dockerfile 9.60%

copy_folder_to_another_repo_action's Introduction

Copy Folder to another Repository

This GitHub Action copies a folder from the current repository to a location in another repository. The action takes care to create the directory, if not yet present.

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: datalbry/[email protected]
      env:
        API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
      with:
        source_folder: 'test_files'
        destination_repo: 'dmnemec/release-test'
        destination_folder: 'test-dir'
        user_email: '[email protected]'
        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 commiting to destination_branch; is useful for creating PRs
  • commit_msg: [optional] The commit message to use.

Behavior Notes

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

copy_folder_to_another_repo_action's People

Contributors

crykn avatar dmnemec avatar lacritz avatar mlinksva avatar zeljkobekcic avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.