Skip to content

deploy workflows

deploy workflows #1

Workflow file for this run

name: Deploy to Sandbox
on:
workflow_dispatch:
pull_request:
types:
- synchronize
- labeled
env:
# for workflow_dispatch: "branch:$name" or "tag:$name"
# for PRs with the deploy-to-sandbox tag: "pr:$number"
version_name: "${{ github.event_name == 'workflow_dispatch' && format('{0}:{1}', github.ref_type, github.ref_name) }}${{ github.event_name == 'pull_request' && format('pr:{0}', github.event.pull_request.number) }}"
jobs:
deploy:
name: Deploy to Sandbox
concurrency:
group: sandbox
cancel-in-progress: true
if: ${{ github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'deploy-to-sandbox') }}
uses: ./.github/workflows/deploy.yml
with:
env: sandbox
version-name: ${{ env.version_name }}

Check failure on line 25 in .github/workflows/deploy-sandbox.yml

View workflow run for this annotation

GitHub Actions / Deploy to Sandbox

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-sandbox.yml (Line: 25, Col: 21): Unrecognized named-value: 'env'. Located at position 1 within expression: env.version_name
secrets: inherit