From b42f3994a9079c192eba674dd8fb8acbacca80d8 Mon Sep 17 00:00:00 2001 From: Michael Chris Lopez Date: Thu, 8 Aug 2024 08:27:01 +0200 Subject: [PATCH] fix(ci): fix release step (#185) --- .github/workflows/ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab23313..81704c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,8 @@ jobs: docs: runs-on: ubuntu-latest + permissions: + contents: write if: ${{ github.ref == 'refs/heads/main' }} steps: - uses: actions/checkout@v4 @@ -28,7 +30,7 @@ jobs: version: "Vim 8.1 / Nvim v0.8.0" treesitter: true - name: Push changes - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: "chore(build): auto-generate vimdoc" commit_user_name: "github-actions[bot]" @@ -59,7 +61,7 @@ jobs: make - name: Push changes - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: "chore(build): rebuild artifacts" commit_user_name: "github-actions[bot]" @@ -68,6 +70,8 @@ jobs: format: runs-on: ubuntu-latest + permissions: + contents: write if: ${{ github.ref == 'refs/heads/main' }} steps: - uses: actions/checkout@v4 @@ -94,6 +98,9 @@ jobs: release: name: release + permissions: + contents: write + pull-requests: write if: ${{ github.ref == 'refs/heads/main' }} needs: - docs