Skip to content

update working directory for postgres action #5

update working directory for postgres action

update working directory for postgres action #5

Workflow file for this run

name: postgres-build
on:
workflow_dispatch:
push:
paths:
- "postgres/**"
- ".github/workflows/postgres*"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
aws-region: eu-west-1
- uses: actions/setup-node@v3
working-directory: postgres/cdk

Check failure on line 30 in .github/workflows/postgres-build.yml

View workflow run for this annotation

GitHub Actions / postgres-build

Invalid workflow file

The workflow is not valid. .github/workflows/postgres-build.yml (Line: 30, Col: 9): Unexpected value 'working-directory'
with:
node-version-file: '.nvmrc'
cache: npm
- name: cdk synth
run: |
npm ci
npm run synth
- uses: guardian/actions-riff-raff@v2
with:
app: postgres
config: |
stacks:
- giant
regions:
- eu-west-1
allowedStages:
- CODE
- PROD
deployments:
cloudformation:
type: cloud-formation
app: postgres
sources:
- postgres/cdk/cdk.out/giant-postgres-CODE.template.json
- postgres/cdk/cdk.out/giant-postgres-PROD.template.json
parameters:
templateStagePaths:
CODE: giant-postgres-CODE.template.json
PROD: giant-postgres-PROD.template.json