diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index efbf7ef..355087d 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -7,19 +7,23 @@ on: - ".github/**" - "**.md" +permissions: + contents: write + pull-requests: write + jobs: stylua: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup and run stylua - uses: JohnnyMorganz/stylua-action@v3 + uses: JohnnyMorganz/stylua-action@v4 with: token: ${{ secrets.GITHUB_TOKEN }} version: v0.19.1 args: --config-path=stylua.toml . - name: Commit changes - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: "chore: autoformat with stylua" branch: ${{ github.ref }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 89fe097..b91f691 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,8 +10,8 @@ jobs: luacheck: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: nebularg/actions-luacheck@v1.1.0 + - uses: actions/checkout@v4 + - uses: nebularg/actions-luacheck@v1.1.2 with: files: 'lua/' config: 'https://raw.githubusercontent.com/NTBBloodbath/rest.nvim/main/.luacheckrc' diff --git a/.github/workflows/luarocks.yml b/.github/workflows/luarocks.yml index f576088..3b048e5 100644 --- a/.github/workflows/luarocks.yml +++ b/.github/workflows/luarocks.yml @@ -14,7 +14,7 @@ jobs: name: Luarocks upload steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # Required to count the commits - name: Install build dependencies diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 067c97c..9a9d9d1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,7 @@ on: push: branches: - main + workflow_dispatch: permissions: contents: write @@ -16,5 +17,6 @@ jobs: steps: - uses: google-github-actions/release-please-action@v3 with: + token: ${{ secrets.CI_TOKEN }} release-type: simple package-name: rest.nvim