From d0e7d2bfba8fd2033634aae87f196984b284f8f3 Mon Sep 17 00:00:00 2001 From: justog220 Date: Tue, 25 Jun 2024 10:55:54 -0300 Subject: [PATCH] Avanzo informe --- .github/workflows/main.yml | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8cc0912..6897a5a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,14 +1,25 @@ -name: copy files +name: Move File to Root on Push + on: [push] -jobs: - build: - name: Build +jobs: + move-file: runs-on: ubuntu-latest + steps: - - uses: actions/checkout@master - - name: copy file - uses: canastro/copy-file-action@master - with: - source: "Informe/0_main.pdf" - target: "Informe.pdf" + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Move file to root + run: | + mv Informe/0_main.pdf . + + - name: Commit and push changes + run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git add file.txt + git commit -m "Move file to root directory" + git push + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}