From cac8d529144ea541ef09b2321a06d800cf6d1bd5 Mon Sep 17 00:00:00 2001 From: rs028 Date: Sat, 3 Feb 2024 14:58:49 +0000 Subject: [PATCH] Check actions permissions --- .github/workflows/tex.yml | 69 ++++++++++++++++++++------------------- 1 file changed, 36 insertions(+), 33 deletions(-) diff --git a/.github/workflows/tex.yml b/.github/workflows/tex.yml index 9e725a54..2f46b15a 100644 --- a/.github/workflows/tex.yml +++ b/.github/workflows/tex.yml @@ -42,44 +42,47 @@ jobs: contents: write steps: + - name: Check Token Permissions + run: | + echo "Token Permissions: $(curl -sSL -H "Authorization: Bearer $ACTIONS_RUNTIME_TOKEN" https://api.github.com/repos/AtChem/AtChem2 | jq .permissions)" # ------------------------------------------------------------- # 1. Checkout the repository from the branch associated with the # current Pull Request - - name: Checkout repo - uses: actions/checkout@v4 - with: - fetch-depth: 2 - ref: ${{ github.head_ref }} + # - name: Checkout repo + # uses: actions/checkout@v4 + # with: + # fetch-depth: 2 + # ref: ${{ github.head_ref }} - # ------------------------------------------------------------- - # 2. Setup TeXLive and Inkscape (v1.x), then run the script to - # generate the pdf file of the manual - - name: Setup TexLive and compile the manual - uses: xu-cheng/texlive-action@v2 - with: - scheme: full - run: | - # install inkscape - apk add inkscape - # run script to generate the pdf file - ./tools/make_manual_pdf.sh + # # ------------------------------------------------------------- + # # 2. Setup TeXLive and Inkscape (v1.x), then run the script to + # # generate the pdf file of the manual + # - name: Setup TexLive and compile the manual + # uses: xu-cheng/texlive-action@v2 + # with: + # scheme: full + # run: | + # # install inkscape + # apk add inkscape + # # run script to generate the pdf file + # ./tools/make_manual_pdf.sh - - name: Upload pdf file as artifact - uses: actions/upload-artifact@v4 - with: - name: AtChem2-Manual.pdf - path: doc/AtChem2-Manual.pdf + # - name: Upload pdf file as artifact + # uses: actions/upload-artifact@v4 + # with: + # name: AtChem2-Manual.pdf + # path: doc/AtChem2-Manual.pdf - # ------------------------------------------------------------- - # 3. - - name: Configure git - run: | - git config --local user.name "github-actions[bot]" - git config --local user.email "github-actions[bot]@users.noreply.github.com" + # # ------------------------------------------------------------- + # # 3. + # - name: Configure git + # run: | + # git config --local user.name "github-actions[bot]" + # git config --local user.email "github-actions[bot]@users.noreply.github.com" - - name: Commit and Push - run: | - git add doc/AtChem2-Manual.pdf - git commit -m "Update AtChem2-Manual.pdf" - git push origin HEAD:${{ github.head_ref }} + # - name: Commit and Push + # run: | + # git add doc/AtChem2-Manual.pdf + # git commit -m "Update AtChem2-Manual.pdf" + # git push origin HEAD:${{ github.head_ref }}