Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

chore(ci): refine translator workflow permissions and step naming

Timothy Yin66feb1c80d1a
diff --git a/.github/workflows/translator.yml b/.github/workflows/translator.yml
index 71ca9528..0f92703b 100644
--- a/.github/workflows/translator.yml
+++ b/.github/workflows/translator.yml
@@ -1,4 +1,4 @@
-name: 'translator'
+name: translator
on:
issues:
types: [opened, edited]
@@ -13,16 +13,22 @@ on:
pull_request_review_comment:
types: [created, edited]
+permissions:
+ contents: read
+ issues: write
+ discussions: write
+ pull-requests: write
+
jobs:
translate:
- permissions:
- issues: write
- discussions: write
- pull-requests: write
runs-on: ubuntu-latest
+
steps:
- - uses: actions/checkout@v3
- - uses: lizheming/[email protected]
+ - uses: actions/checkout@v4
+
+ - name: Translate content
+ uses: lizheming/[email protected]
+ continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: