commit 088edeecee9c88d977f8c4d400e33a4156b84cde parent 1f674d5a1e5858d1851f94ff47e0ec8ef588cb26 Author: Minerva_juppiter <94231606+minerva-jupiter@users.noreply.github.com> Date: Tue, 22 Apr 2025 10:28:32 +0900 PRbuild.yaml を更新 Diffstat:
| M | .github/workflows/PRbuild.yaml | | | 14 | ++------------ |
1 file changed, 2 insertions(+), 12 deletions(-)
diff --git a/.github/workflows/PRbuild.yaml b/.github/workflows/PRbuild.yaml @@ -1,4 +1,4 @@ -name: compile LaTeX when PR update +'name: compile LaTeX when PR update on: pull_request: @@ -23,18 +23,8 @@ jobs: URL: ${{ github.event.pull_request.html_url }} run: | ls - git config --local user.name "github-actions[bot]" - git config --local user.email "github-actions[bot]@users.noreply.github.com" - gh repo clone $GIT_URL - cd ${GITHUB_REPOSITORY#${GITHUB_REPOSITORY_OWNER}/} - git fetch origin $BRANCH git checkout $BRANCH - cp ../main.pdf ./converted/ - git add . - if [ -z "$(git status --porcelain)" ]; then - echo "No changes to commit" - exit 0 - fi + git add ./main.pdf git commit -m "render main.tex" git remote set-url origin https://<username>:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} git push \ No newline at end of file