Skip to content

Commit

Permalink
🔧 GitHub Actionsのフィルタリング条件とアクションバージョンの更新 (#29)
Browse files Browse the repository at this point in the history
* 🔧 PR作成者のフィルタリング条件を改善

* 🔧 openai-generate-pr-descriptionアクションのバージョンをv1.0.1に更新

* 🔧 READMEの条件を改善し、renovateボットのフィルタリングを更新
  • Loading branch information
tqer39 authored Nov 4, 2024
1 parent beec413 commit f5811cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/generate-pr-description.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ jobs:
generate-pr-description:
runs-on: ubuntu-latest
timeout-minutes: 10
if: contains(github.event.pull_request.user.login, 'renovate') == false
# Check if the PR is not created by 'renovate' or 'tqer39-apps'
if: contains(fromJSON('["renovate[bot]", "tqer39-apps[bot]"]'), github.event.pull_request.user.login) == false
permissions:
pull-requests: write
steps:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
permissions:
pull-requests: write
contents: read
if: contains(github.event.pull_request.user.login, 'renovate') == false
if: contains(fromJSON('["renovate[bot]"]'), github.event.pull_request.user.login) == false
steps:
- uses: actions/checkout@v4
- uses: tqer39/generate-pr-description-action@v1.0.0
- uses: tqer39/openai-[email protected].1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
open-api-key: ${{ secrets.OPENAI_API_KEY }}
Expand Down
4 changes: 2 additions & 2 deletions docs/README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
timeout-minutes: 10
permissions:
pull-requests: write
if: contains(github.event.pull_request.user.login, 'renovate') == false
if: contains(fromJSON('["renovate[bot]"]'), github.event.pull_request.user.login) == false
steps:
- uses: actions/checkout@v4
- uses: tqer39/generate-pr-description-action@v1.0.0
- uses: tqer39/openai-[email protected].1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
open-api-key: ${{ secrets.OPENAI_API_KEY }}
Expand Down

0 comments on commit f5811cf

Please sign in to comment.