Skip to content

Commit 25265cb

Browse files
committed
Pass secrets to called workflow
1 parent 39f7932 commit 25265cb

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/code-quality.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ jobs:
2222
strategy:
2323
fail-fast: true
2424
matrix:
25-
# operating-system: ['ubuntu-latest', 'windows-latest', 'macos-latest']
26-
# php-versions: ['8.1', '8.2', '8.3', '8.4', '8.5']
27-
operating-system: ['ubuntu-latest']
28-
php-versions: ['8.4']
25+
operating-system: ['ubuntu-latest', 'windows-latest', 'macos-latest']
26+
# All supported versions of PHP and next stable when it's in RC
27+
php-versions: ['8.1', '8.2', '8.3', '8.4', '8.5']
2928
steps:
3029
- name: Force linux line endings
3130
run: |
@@ -81,8 +80,9 @@ jobs:
8180
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}
8281

8382
build-and-push-docker:
84-
runs-on: ubuntu-latest
8583
needs: code-quality
84+
uses: ./.github/workflows/build-and-push-docker.yml
85+
secrets: inherit
8686
# Only build docker images on pushes to master, develop and tags
8787
if:
8888
(
@@ -91,6 +91,4 @@ jobs:
9191
github.ref == format('refs/heads/{0}', 'develop')
9292
) &&
9393
github.event_name != 'pull_request'
94-
steps:
95-
- name: Build and Push Docker Image
96-
uses: ./.github/workflows/build-and-push-docker.yml
94+

0 commit comments

Comments
 (0)