Skip to content

Commit 373c353

Browse files
Remove environment + make the bot open the PRs
1 parent aac1654 commit 373c353

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/update-hugo.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ permissions: {}
1111
jobs:
1212
check-and-update:
1313
name: Check for new Hugo release
14-
runs-on: ubuntu-latest
15-
environment: update-hugo
14+
runs-on: ubuntu-slim
1615
permissions:
1716
contents: write # to update files and push branches
1817
pull-requests: write # to create PR
@@ -75,8 +74,10 @@ jobs:
7574
if: steps.check-hugo-release.outputs.updated == 'true'
7675
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
7776
with:
78-
token: ${{ secrets.UPDATE_HUGO_TOKEN }}
77+
token: ${{ secrets.GITHUB_TOKEN }}
7978
branch: update-hugo-v${{ steps.check-hugo-release.outputs.latest_version }}
8079
commit-message: "Update Hugo to v${{ steps.check-hugo-release.outputs.latest_version }}"
8180
title: "Update Hugo to v${{ steps.check-hugo-release.outputs.latest_version }}"
8281
body-path: /tmp/pr-body.md
82+
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
83+
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

0 commit comments

Comments
 (0)