From 6006a432d8e6628d7518b5db2a8c0375a4eed358 Mon Sep 17 00:00:00 2001 From: Sergey Kambalin Date: Mon, 6 May 2024 11:30:32 +0600 Subject: [PATCH] Update workflow --- .github/workflows/compile.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 837bfc4f9..5276c2b0c 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -4,17 +4,22 @@ on: push: {} pull_request: {} +permissions: + contents: write + pull-requests: write + jobs: - build: + compile: + name: Compile CV runs-on: ubuntu-latest container: texlive/texlive:latest steps: - - name: Checkout repo - uses: actions/checkout@v4 - with: - persist-credentials: false - fetch-depth: 0 + - uses: actions/checkout@master + name: Checkout repository + # with: + # persist-credentials: false + # fetch-depth: 0 - name: Compile run: xelatex SergeyKambalin.tex @@ -22,8 +27,9 @@ jobs: - name: Commit & Push changes uses: actions-js/push@master with: - github_token: ${{ secrets.GITHUB_TOKEN }} message: "Auto-compile CV: ${date}" + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.head_ref }} - uses: actions/upload-artifact@v4 name: Upload CV