Skip to content

Commit

Permalink
ci: fix permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
zyrouge committed Nov 10, 2024
1 parent 9a4efbe commit 162bf5d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/i18n-summary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ on:
paths:
- .phrasey/**
- i18n/**
pull_request_review:
pull_request_target:
types:
- submitted
- opened
- edited
workflow_dispatch:

permissions:
Expand All @@ -19,7 +20,6 @@ permissions:
jobs:
i18n-summary:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request_review' || github.event.review.state == 'approved'

steps:
- uses: actions/checkout@v4
Expand All @@ -36,7 +36,7 @@ jobs:
run: npm run i18n:summary

- name: 🚀 Push summary files
if: github.event_name != 'pull_request_review'
if: github.event_name != 'pull_request_target'
uses: zyrouge/gh-push-action@v1
with:
directory: phrasey-dist
Expand All @@ -45,7 +45,7 @@ jobs:
force: true

- name: 💬 Comment summary
if: github.event_name == 'pull_request_review'
if: github.event_name == 'pull_request_target'
uses: actions/github-script@v7
with:
script: |
Expand Down

0 comments on commit 162bf5d

Please sign in to comment.