From 76f8ee1ccd4e87546fd81aa62e5ee053b08c580d Mon Sep 17 00:00:00 2001 From: Heidi Housten <14905544+housten@users.noreply.github.com> Date: Tue, 11 Jun 2024 15:38:30 +0200 Subject: [PATCH] added environments --- .github/workflows/test-template.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-template.yml b/.github/workflows/test-template.yml index 0aac5a3..ab259af 100644 --- a/.github/workflows/test-template.yml +++ b/.github/workflows/test-template.yml @@ -19,8 +19,11 @@ on: jobs: echo: runs-on: ubuntu-latest + strategy: + matrix: + environment: [dev,qa,test] steps: - name: Run a one-line script - run: echo "Hello this is a workflow template running log level ${{ github.event.inputs.logLevel }}" ; echo "${{ github.event.inputs.logLevel }}">> $GITHUB_STEP_SUMMARY - name: echo ${{ github.event.inputs.logLevel }} + run: echo "Hello this is a workflow template running log level ${{ github.event.inputs.logLevel }}" ; echo "${{ github.event.inputs.logLevel }} ${{ matrix.environment }} ${{ vars.SERVICE_ACCOUNT }} ">> $GITHUB_STEP_SUMMARY + name: echo ${{ github.event.inputs.logLevel }} ${{ matrix.environment }}