Skip to content

feat: add working directory to the github actions #8

feat: add working directory to the github actions

feat: add working directory to the github actions #8

Workflow file for this run

name: Pulumi Deploy
on:
push:
paths:
- 'todo-app/**'
branches:
- main # Trigger on push to the main branch
jobs:
pulumi-deploy:
runs-on: ubuntu-latest
env:
AWS_REGION: ${{ secrets.AWS_REGION }}
permissions:
id-token: write
contents: read
pull-requests: write
repository-projects: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4 # More information on this action can be found below in the 'AWS Credentials' section
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: ${{ secrets.AWS_REGION }}
role-session-name: GithubActionsSession
- name: Install Dependencies
run: |
pip install -r requirements.txt
working-directory: todo-app
- uses: pulumi/actions@v3
with:
command: preview
stack-name: dev
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
working-directory: todo-app

Check failure on line 45 in .github/workflows/pulumi-deploy.yml

View workflow run for this annotation

GitHub Actions / Pulumi Deploy

Invalid workflow file

The workflow is not valid. .github/workflows/pulumi-deploy.yml (Line: 45, Col: 9): Unexpected value 'working-directory' .github/workflows/pulumi-deploy.yml (Line: 53, Col: 9): Unexpected value 'working-directory'
- uses: pulumi/actions@v3
with:
command: up
stack-name: dev
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
working-directory: todo-app