Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
marticliment authored Jul 31, 2024
2 parents f691a4e + 4948788 commit 490f541
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 9 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/approve-tolgee-PRs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Auto approve Tolgee PRs

on: pull_request_target

jobs:
auto-approve:
runs-on: ubuntu-latest
permissions:
pull-requests: write
if: contains(github.event.pull_request.labels.*.name, 'tolgee-ci') && github.actor == 'martinet101'
steps:
- uses: hmarr/auto-approve-action@v4
with:
review-message: "Tolgee-CI PR has been approved automatically"

5 changes: 4 additions & 1 deletion .github/workflows/dotnet-test.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
name: .NET Tests
on:
push:
branches: [ "main" ]
paths:
- '**.cs'
- '**.csproj'

pull_request:
branches: [ "main" ]
paths:
- '**.cs'
- '**.csproj'

workflow_dispatch:

jobs:

test:
test-codebase:
runs-on: windows-latest # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on

Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/translations-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ name: Translation integrity
on:
pull_request:
branches: [ "main" ]
paths:
- '**.json'

workflow_dispatch:

jobs:

test:
if: github.event.
test-translations:
if: contains(github.event.pull_request.labels.*.name, 'tolgee-ci')
runs-on: ubuntu-latest # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-icons.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- cron: 0 0 * * *
workflow_dispatch:
jobs:
main:
load-icons:
runs-on: windows-latest
steps:
- name: Checkout repository
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-tolgee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ on:
- cron: 0 0 * * *
workflow_dispatch:
jobs:
main:
load-translations:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -27,7 +28,6 @@ jobs:
labels: tolgee-ci
title: "Load translations from Tolgee"
body: ""
# reviewers: "${{ github.repository_owner }}"
author: "Martí Climent <[email protected]>"
commit-message: "Load updated translations from Tolgee"
branch: pull-request/update-translation

0 comments on commit 490f541

Please sign in to comment.