Skip to content

New deployment for "workflows" triggered by lukasz-wal #1

New deployment for "workflows" triggered by lukasz-wal

New deployment for "workflows" triggered by lukasz-wal #1

name: Deploy New Version
run-name: New deployment for "${{ github.ref_name }}" triggered by ${{ github.actor }}
on:
pull_request:
types: [opened, synchronize]
push:
branches:
- workflows
workflow_dispatch:
inputs:
version:
description: 'Enter the version number'
required: true
default: 'latest'
jobs:
ReuseableMatrixJobForDeployment:
strategy:
matrix:
build-type: [production, staging]
include:
- build-type: production
tag_suffix: prod
environment: production-fidl
- build-type: staging
tag_suffix: stg
environment: staging-fidl
uses: ./.github/workflows/release-new-version.yml

Check failure on line 32 in .github/workflows/deploy-new-version.yml

View workflow run for this annotation

GitHub Actions / Deploy New Version

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-new-version.yml (Line: 32, Col: 11): Input version is required, but not provided while calling. .github/workflows/deploy-new-version.yml (Line: 34, Col: 14): Invalid input, stage is not defined in the referenced workflow.
with:
stage: ${{ matrix.build-type }}
tag_suffix: ${{ matrix.tag_suffix }}
environment: ${{ matrix.environment }}
secrets: inherit
# reuseable-matrix-job:
# strategy:
# matrix:
# build-type: [production, staging]
# include:
# - build-type: production
# tag_suffix: prod
# environment: production-fidl
# - build-type: staging
# tag_suffix: stg
# environment: staging-fidl
# uses: ./.github/workflows/release-new-version.yml
# with:
# stage: ${{ matrix.build-type }}
# tag_suffix: ${{ matrix.tag_suffix }}
# environment: ${{ matrix.environment }}
# secrets: inherit