This message was deleted.
# azure
s
This message was deleted.
m
Hi Standa! At first glance, your configuration seems correct. Which makes me think that perhaps you’re applying it to the wrong stack? Config is per-stack whereas environment variables are global.
p
It seems like it's picking up the correct stack. In the GitHub action output, I can see
Copy code
Refresh stack on <org>/shared/develop
  Refreshing (<org>/develop)
The repository looks like this
Copy code
Shared
  Pulumi.yaml
  Pulumi.develop.yaml
  Pulumi.demo.yaml
  ...
And the action looks like this
Copy code
name: infrastructure-preview
on:
  pull_request:
    paths:
      - 'Shared/**'
jobs:
  preview:
    name: Preview ${{ matrix.stack }}
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        include:
          - stack: shared/develop
            dir: ./Shared
          - stack: shared/demo
            dir: ./Shared
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-dotnet@v3
        with:
          dotnet-version: '7.0.x'
      - name: Preview ${{ matrix.stack }}
        uses: pulumi/actions@v4
        with:
          command: preview
          stack-name: mews/${{ matrix.stack }}
          work-dir: ${{ matrix.dir }}
          diff: true
          refresh: true
        env:
          PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
So I think it should pick up the correct YAML config file...
m
Ok. Just to confirm, you’re seeing the expected config entries when you run
pulumi config --stack <org>/develop
?
p
Yes, I do
110 Views