From ee7c4c22b47b5564b7a9e65c0f92a761da4f43fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Am=C3=A9lia=20Liao?= Date: Tue, 12 Sep 2023 06:19:30 -0300 Subject: [PATCH] let's try another one then --- .github/workflows/preview.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index eab4aed92..b145b345f 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -55,12 +55,13 @@ jobs: # eval "$installPhase" cp -rv src pr-${{ github.event.number }} - - uses: GuillaumeFalourd/git-commit-push@v1.3 + - name: Upload 📦 + uses: dmnemec/copy_file_to_another_repo_action@main + env: + API_TOKEN_GITHUB: ${{ secrets.PREVIEW_TOKEN }} with: - email: ${{ github.actor }}@users.noreply.github.com - name: ${{ github.actor }} - commit_message: Preview for PR ${{ github.event.number }} - target_branch: main - files: pr-${{ github.event.number }} - remote_repository: https://github.com/plt-amy/1lab-previews - access_token: ${{ secrets.PREVIEW_TOKEN }} + source_file: pr-${{ github.event.number }} + destination_repo: 'plt-amy/1lab-previews' + user_email: 'me@amelia.how' + user_name: 'plt-amy' + commit_message: 'Preview of PR #${{ github.event.number }}'