Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
ci: fix update workflow (#149)
Browse files Browse the repository at this point in the history
* ci: edit update workflow

* ci: edit update workflow

* fix fmt issue
  • Loading branch information
boywithkeyboard authored Aug 10, 2023
1 parent 1455269 commit 013dba0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
- cron: '0 0 * * *'
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
update:
runs-on: ubuntu-latest
Expand All @@ -27,11 +31,8 @@ jobs:
rm updates_changelog.md
- name: Create pull request
uses: peter-evans/create-pull-request@v4
uses: peter-evans/create-pull-request@v5
with:
assignees: '${{ inputs.assignees }}'
reviewers: '${{ inputs.reviewers }}'
token: '${{ secrets.token }}'
title: 'refactor: update deps'
author: 'github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>'
committer: 'github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>'
Expand Down
2 changes: 1 addition & 1 deletion cheetah.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export class cheetah extends base<cheetah>() {
): Promise<Response> => {
try {
const ip = data?.remoteAddr && this.#runtime === 'deno'
? ((data as Deno.ServeHandlerInfo).remoteAddr)
? (data as Deno.ServeHandlerInfo).remoteAddr
.hostname
: req.headers.get('cf-connecting-ip') ?? undefined

Expand Down

0 comments on commit 013dba0

Please sign in to comment.