From a6be65cb60d364800ea27cf96004a58b5abd953c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Mon, 1 Apr 2024 15:28:26 +0200 Subject: [PATCH] ci: push changes if something changed --- .github/workflows/deploy.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bec98e2..f5e67f1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,7 +10,7 @@ on: # Allow this job to clone the repo and create a page deployment permissions: - contents: read + contents: write pages: write id-token: write @@ -22,10 +22,21 @@ jobs: uses: actions/checkout@v4 with: submodules: "recursive" + - name: Make writeups run: | rm -rf src/content/writeups/* ./make.sh + + - name: Try to push changes + uses: actions-js/push@master + continue-on-error: true + with: + github_token: "${{ secrets.GITHUB_TOKEN }}" + author_email: 41898282+github-actions[bot]@users.noreply.github.com + author_name: github-actions[bot] + message: Update writeups 🚀 + - name: Install, build, and upload your site uses: withastro/action@v2 with: