Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/cd-deploy-main.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
name: CD deploy main

permissions:
contents: read

on:
push:
branches:
- main

jobs:
deploy-main:
timeout-minutes: 3
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/cd-deploy-tag.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
name: CD deploy tag

permissions:
contents: read

on:
push:
tags:
- 'v*'

jobs:
deploy-tag:
timeout-minutes: 3
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/changed-files.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Changed files reusable workflow

on:
workflow_call:
inputs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-cli.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: CI CLI

on:
push:
branches:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-e2e.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: CI E2E Playwright Tests

on:
push:
branches:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci-emails.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: CI Emails

permissions:
contents: read

on:
push:
branches:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-front.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: CI Front

on:
push:
branches:
Expand Down
21 changes: 13 additions & 8 deletions .github/workflows/ci-release-create.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
name: "Release: create"

permissions:
contents: read
pull-requests: write

on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -35,11 +40,11 @@ jobs:
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
branch: release/${{ steps.sanitize.outputs.version }}
commit-message: "chore: release v${{ steps.sanitize.outputs.version }}"
committer: Github Action Deploy <[email protected]>
author: Github Action Deploy <[email protected]>
title: Release v${{ steps.sanitize.outputs.version }}
labels: |
release
${{ github.event.inputs.create_release == true && 'create_release' || '' }}
branch: release/${{ steps.sanitize.outputs.version }}
commit-message: "chore: release v${{ steps.sanitize.outputs.version }}"
committer: Github Action Deploy <[email protected]>
author: Github Action Deploy <[email protected]>
title: Release v${{ steps.sanitize.outputs.version }}
labels: |
release
${{ github.event.inputs.create_release == true && 'create_release' || '' }}
4 changes: 4 additions & 0 deletions .github/workflows/ci-release-merge.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: "Release: on merge"

permissions:
contents: write

on:
pull_request:
types:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-server.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: CI Server

on:
push:
branches:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-shared.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: CI Shared

on:
push:
branches:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-utils.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
name: CI Utils

on:
# it's usually not recommended to use pull_request_target
# but we consider it's safe here if we keep the same steps
# see: https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
# and: https://github.com/facebook/react-native/pull/34370/files
pull_request_target:
types: [opened, synchronize, reopened, closed]

permissions:
actions: write
checks: write
contents: write
issues: write
pull-requests: write
statuses: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
# We don't cancel in-progress because this workflow is triggered on
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci-website.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: CI Website

permissions:
contents: read

on:
push:
branches:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/i18n-pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

name: 'Pull translations from Crowdin'

permissions:
contents: write
pull-requests: write

on:
schedule:
- cron: '0 */2 * * *' # Every two hours.
Expand All @@ -29,10 +33,6 @@ jobs:
pull_translations:
name: Pull translations
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/i18n-push.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: 'Push translations to Crowdin'

permissions:
contents: write
pull-requests: write

on:
workflow_dispatch:
workflow_call:
Expand All @@ -14,9 +18,6 @@ jobs:
extract_translations:
name: Extract and upload translations
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/preview-env-dispatch.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: 'Preview Environment Dispatch'

permissions:
contents: write
actions: write
pull-requests: read

on:
# Using pull_request_target instead of pull_request to have access to secrets for external contributors
# Security note: This is safe because we're only using the repository-dispatch action with limited scope
Expand All @@ -19,10 +24,6 @@ concurrency:

jobs:
trigger-preview:
permissions:
contents: write
actions: write
pull-requests: read
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' || (github.event.action == 'labeled' && github.event.label.name == 'preview-app')
timeout-minutes: 5
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/preview-env-keepalive.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: 'Preview Environment Keep Alive'

permissions:
contents: read
pull-requests: write

on:
repository_dispatch:
types: [preview-environment]
Expand Down