Open zacaytion opened 2 years ago
Hello, thank you for posting this issue!
I think this has to do with the AWS provider, but for reference, would you mind sharing the full workflow file?
this is mega annoying and still happening btw.
I am not sure it's related to the provider, it would be good for the action to have a pre-command to run for example or to support pulumi plugin install
as this keeps happening every time we update the yarn/npm dependency version
How can I work around it?
@rodrigobrim I've endedup installing the plugin all the times
- name: Install Pulumi CLI
uses: pulumi/setup-pulumi@v2
- name: Install pulumi aws plugin
run: pulumi plugin install resource aws v5.9.2 # matching package.json "@pulumi/aws"
- name: Install pulumi datadog plugin
run: pulumi plugin install resource datadog v4.9.0 # matching package.json "@pulumi/datadog"
- uses: pulumi/actions@v3
with:
command: up
@aterreno what kind of runtime are you using? Are you running yarn install
or npm install
before what you've shared here?
@cobraz apologies for late reply, we use yarn and cache action, snippet:
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
id: node-modules-cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Install packages
if: |
steps.yarn-cache.outputs.cache-hit != 'true' ||
steps.node-modules-cache.outputs.cache-hit != 'true'
working-directory: ./functions/xyz
run: yarn install
Hello!
Issue details
Over the weekend, actions have started to fail after attempting to install the aws resource plugin. This issue only seems to happen when run inside a github action, as deploying manually with the pulumi cli succeeds without any errors.
Steps to reproduce
The action is running on
ubuntu-latest
with other actions:actions/setup-node@v2
,actions/cache@v2
,actions/checkout@v2
andpulumi/actions@v3
Unable to reproduce outside of running the github action. Here is the output, including the error messages:
The output is:
Expected: I expected the action to install the aws plugin and deploy the changes Actual: The action fails and the deployment is skipped.