Skip to content

Commit de98fc5

Browse files
authored
Only run translations build on push
It relies on a secret token being available and for pull requests from forks, this is not available and therefor the workflow will fail
1 parent f5cec24 commit de98fc5

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

.github/workflows/translations.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@ name: Build translations
33

44
on: # yamllint disable-line rule:truthy
55
push:
6-
branches: ['simplesamlphp-*', 'master']
7-
paths:
8-
- '**.po'
9-
- '**.php'
10-
- '**.twig'
11-
pull_request:
12-
branches: ['*']
136
paths:
147
- '**.po'
158
- '**.php'
@@ -98,7 +91,7 @@ jobs:
9891
commit:
9992
name: Commit changes to assets
10093
needs: build
101-
if: needs.build.outputs.files_changed == 'true' && github.event_name == 'push'
94+
if: needs.build.outputs.files_changed == 'true'
10295
runs-on: [ubuntu-latest]
10396

10497
steps:

0 commit comments

Comments
 (0)