aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/update-lockfile.yml7
-rw-r--r--.github/workflows/update-readme.yml7
2 files changed, 8 insertions, 6 deletions
diff --git a/.github/workflows/update-lockfile.yml b/.github/workflows/update-lockfile.yml
index b994622bf..1a38f8d38 100644
--- a/.github/workflows/update-lockfile.yml
+++ b/.github/workflows/update-lockfile.yml
@@ -42,10 +42,11 @@ jobs:
echo "UPDATED_PARSERS=$UPDATED_PARSERS" >> $GITHUB_ENV
- name: Create Pull Request
- uses: peter-evans/create-pull-request@v6
+ id: pr
+ uses: peter-evans/create-pull-request@v7
with:
token: ${{ steps.app-token.outputs.token }}
- author: "nvim-treesitter-bot[bot] <157957100+nvim-treesitter-bot[bot]@users.noreply.github.com>"
+ sign-commits: true
commit-message: "bot(lockfile): update ${{ env.UPDATED_PARSERS }}"
title: "Update lockfile.json: ${{ env.UPDATED_PARSERS }}"
body: "[beep boop](https://github.com/peter-evans/create-pull-request)"
@@ -55,4 +56,4 @@ jobs:
- name: Enable Pull Request Automerge
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
- run: gh pr merge --rebase --auto update-lockfile-pr
+ run: gh pr merge --rebase --auto ${{ steps.pr.outputs.pull-request-number }}
diff --git a/.github/workflows/update-readme.yml b/.github/workflows/update-readme.yml
index 44f10a425..6e5119f71 100644
--- a/.github/workflows/update-readme.yml
+++ b/.github/workflows/update-readme.yml
@@ -30,10 +30,11 @@ jobs:
nvim -l scripts/update-readme.lua || echo 'Needs update'
- name: Create Pull Request
- uses: peter-evans/create-pull-request@v6
+ id: pr
+ uses: peter-evans/create-pull-request@v7
with:
token: ${{ steps.app-token.outputs.token }}
- author: "nvim-treesitter-bot[bot] <157957100+nvim-treesitter-bot[bot]@users.noreply.github.com>"
+ sign-commits: true
commit-message: "bot(readme): update"
title: Update README
body: "[beep boop](https://github.com/peter-evans/create-pull-request)"
@@ -43,4 +44,4 @@ jobs:
- name: Enable Pull Request Automerge
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
- run: gh pr merge --rebase --auto update-readme-pr
+ run: gh pr merge --rebase --auto ${{ steps.pr.outputs.pull-request-number }}