From 802889eed912d95081a914e9ecb108ce9623c956 Mon Sep 17 00:00:00 2001 From: Artemy <90921891+ArtemySazonov@users.noreply.github.com> Date: Sat, 12 Aug 2023 21:03:41 +0200 Subject: [PATCH] Update deploy_sample.yml --- .github/workflows/deploy_sample.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy_sample.yml b/.github/workflows/deploy_sample.yml index 8b5b013..6606736 100644 --- a/.github/workflows/deploy_sample.yml +++ b/.github/workflows/deploy_sample.yml @@ -2,6 +2,9 @@ name: Build samples on: push: branches: [ "main" ] + pull_request: + branches: [ "main" ] + jobs: build_latex: runs-on: ubuntu-latest @@ -12,19 +15,10 @@ jobs: - name: Compile LaTeX document uses: xu-cheng/latex-action@v2 with: - working_directory: / - root_file: [ "*.tex" ] + root_file: sample.tex - name: Upload PDF file to GitHub Action uses: actions/upload-artifact@v3 with: - name: Sample resumes + name: Sample resume path: sample.pdf - - - name: Push to another branch - run: | - git fetch origin samples:samples - git checkout samples - git add *.pdf - git commit -m 'Updated the samples' - git push \ No newline at end of file