Skip to content

Deploy main to App dev #273

Deploy main to App dev

Deploy main to App dev #273

Workflow file for this run

name: Deploy App
# Need to set a default value for when the workflow is triggered from a git push
# which bypasses the default configuration for inputs
run-name: Deploy ${{ github.ref_name }} to App ${{ inputs.environment || 'dev' }}
on:
push:
branches:
- "main"
paths:
- "app/**"
- "bin/**"
- "infra/**"
workflow_dispatch:
inputs:
environment:
description: "target environment"
required: true
default: "dev"
type: choice
options:
- dev
- prod
permissions:
id-token: write
jobs:
deploy:

Check failure on line 28 in .github/workflows/cd-app.yml

View workflow run for this annotation

GitHub Actions / Deploy App

Invalid workflow file

The workflow is not valid. .github/workflows/cd-app.yml (Line: 28, Col: 3): Error calling workflow 'DSACMS/iv-cbv-payroll/.github/workflows/deploy.yml@5d3e7a4d2cefc0098c72cdd9fcbe93799056dbac'. The nested job 'deploy' is requesting 'contents: write', but is only allowed 'contents: read'.
permissions:
contents: read
id-token: write
name: Deploy
uses: ./.github/workflows/deploy.yml
with:
app_name: "app"
environment: ${{ inputs.environment || 'dev' }}