dmnemec / copy_file_to_another_repo_action

This GitHub Action copies a file from the current repository to a location in another repository
Apache License 2.0
183 stars 206 forks source link

Doesn't post to root folder. #53

Open N6REJ opened 2 years ago

N6REJ commented 2 years ago

Trying to post files from my common settings repo so another repo which should have the same files and structure and its not posting to root. instead its putting it in the 'site' folder.

name: File sync

on: push

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

      - name: Pushes test file
        uses: dmnemec/copy_file_to_another_repo_action@main
        env:
          API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
        with:
          source_file: '.git-sync/site/*.*'
          user_name: 'Bearsampp'
          user_email: 'programming@hallhome.us'
          destination_repo: 'Bearsampp/website'
          #destination_folder: '/'
          destination_branch: 'main'

image

I've tried source_file: '.git-sync/site/*.*' in many configurations

m-aljammali-inkerz commented 1 year ago

facing same bug