ci: send translations PRs to the translation project #93
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Add PRs to the Marketing GitHub Project | |
on: | |
pull_request: | |
types: | |
- opened | |
pull_request_target: | |
types: | |
- assigned | |
- unassigned | |
- labeled | |
- unlabeled | |
- opened | |
- edited | |
- closed | |
- reopened | |
- synchronize | |
- converted_to_draft | |
- ready_for_review | |
- locked | |
- unlocked | |
- review_requested | |
- review_request_removed | |
- auto_merge_enabled | |
- auto_merge_disabled | |
jobs: | |
add-to-project: | |
name: Add issue to project | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
repository-projects: write | |
if: github.event.pull_request.head.repo.full_name == github.repository | |
steps: | |
- uses: actions/add-to-project@main | |
with: | |
project-url: https://github.com/orgs/openfoodfacts/projects/24 | |
github-token: ${{ secrets.ADD_TO_PROJECT_PAT || github.token }} | |
label-operator: AND | |
- uses: actions/add-to-project@main | |
with: | |
project-url: https://github.com/orgs/openfoodfacts/projects/136 # Add issue to the Translations project | |
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} | |
labeled: 🌐 Translations, translations, i18n, Translations | |
label-operator: OR |