From fb8f791513b280ba60b1c1fd097471729b2d151e Mon Sep 17 00:00:00 2001 From: Elisei Roca Date: Fri, 20 Dec 2024 22:44:26 +0100 Subject: [PATCH] Simplify workflow --- .gitea/workflows/test.yaml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 3939a18..97984a8 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -3,9 +3,6 @@ on: [push] jobs: test-on-protected-branch: runs-on: ubuntu-latest - permissions: - # Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository. - contents: write steps: - name: Fix dns run: echo 'nameserver 1.1.1.1' > /etc/resolv.conf @@ -15,15 +12,11 @@ jobs: - name: Add a line to README.md run: | echo -e "$(date) - commited via Gitea Actions\n" >> README.md - - name: Get last commit message - id: last-commit - run: | - echo "author=$(git log -1 --pretty=\"%an <%ae>\")" >> $GITHUB_OUTPUT - name: Commit changes back uses: https://github.com/stefanzweifel/git-auto-commit-action@v5 with: - commit_user_name: eliroca - commit_author: ${{ steps.last-commit.outputs.author }} + commit_user_name: gitea-actions-bot + commit_author: Gitea Actions bot commit_message: "[skip actions] Gitea Actions run" commit_options: '--no-edit' skip_fetch: true