mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-06 14:05:21 +02:00
fix: workflow permissions (#5636)
This commit is contained in:
parent
0c534ad9d4
commit
f72ebed0dc
1 changed files with 8 additions and 2 deletions
10
.github/workflows/locale-sync.yml
vendored
10
.github/workflows/locale-sync.yml
vendored
|
@ -3,10 +3,14 @@ name: Automatic Locale Sync
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
# Run every Sunday at 2 AM UTC
|
# Run every Sunday at 2 AM UTC
|
||||||
- cron: '0 2 * * 0'
|
- cron: "0 2 * * 0"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
# Allow manual triggering from the GitHub UI
|
# Allow manual triggering from the GitHub UI
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write # To checkout, commit, and push changes
|
||||||
|
pull-requests: write # To create pull requests
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sync-locales:
|
sync-locales:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -19,7 +23,7 @@ jobs:
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.12'
|
python-version: "3.12"
|
||||||
|
|
||||||
- name: Install Poetry
|
- name: Install Poetry
|
||||||
uses: snok/install-poetry@v1
|
uses: snok/install-poetry@v1
|
||||||
|
@ -83,6 +87,8 @@ jobs:
|
||||||
# Push the branch
|
# Push the branch
|
||||||
git push origin "$BRANCH_NAME"
|
git push origin "$BRANCH_NAME"
|
||||||
|
|
||||||
|
sleep 2
|
||||||
|
|
||||||
# Create PR using GitHub CLI
|
# Create PR using GitHub CLI
|
||||||
gh pr create --title "chore: automatic locale sync" --body "## Summary
|
gh pr create --title "chore: automatic locale sync" --body "## Summary
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue