Skip to content

Commit 70e48be

Browse files
authored
Fixed CI action for forks in open source
1 parent b156b9d commit 70e48be

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/browser-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ jobs:
188188
${{ inputs.project-edition }}-${{ steps.project-version.outputs.version }}-${{ inputs.php-image }}
189189
190190
- name: Generate token
191+
if: ${{ secrets.AUTOMATION_CLIENT_ID != '' && secrets.AUTOMATION_CLIENT_SECRET != '' }}
191192
id: generate_token
192193
uses: actions/create-github-app-token@v2
193194
with:

actions/composer-install/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ inputs:
2525
runs:
2626
using: "composite"
2727
steps:
28-
- uses: actions/create-github-app-token@v2
28+
- if: ${{ inputs.gh-client-id != '' && inputs.gh-client-secret != '' }}
29+
uses: actions/create-github-app-token@v2
2930
id: generate_token
3031
with:
3132
app-id: ${{ inputs.gh-client-id }}

0 commit comments

Comments
 (0)