AL-Go icon indicating copy to clipboard operation
AL-Go copied to clipboard

[Question]: Regarding warnings after update to 5.3

Open gntpet opened this issue 1 year ago • 6 comments

Question

After upgrade AL-GO to 5.3 we do received these warnings:

The property runs-on in DeployToPROD is expected to be of type Object[] image

Is it a code issue on your end or do we have to change something in our configs? My config looks like this:

"DeployToQA": {
    "EnvironmentType": "SaaS",
    "EnvironmentName": "QA",
    "Projects": "SRS.nl",
    "Branches": [
      "main"
    ],
    "ContinuousDeployment": true,
    "runs-on": "ubuntu-latest"
  },

Deployments works as expected

Best Regards, Gintautas

gntpet avatar Aug 29 '24 09:08 gntpet

Any input on this one, @freddydk ?

gntpet avatar Sep 09 '24 08:09 gntpet

Sorry, didn't see this. You should modify your "runs-on" to

"runs-on": [ "ubuntu-latest" ]

I will add this to documentation - it doesn't clearly state that runs-on should be an array. On github, it is clearly mentioned: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_idruns-on - but you shouldn't need to read that.

freddydk avatar Sep 09 '24 09:09 freddydk

Thanks, it did help to remove the warning.

Nevertheless, there's an slight confusion about runs-on setting. Please check the image

image

gntpet avatar Sep 09 '24 12:09 gntpet

Both should be arrays as far as I know. Maybe the first isn't checked.

freddydk avatar Sep 09 '24 12:09 freddydk

Initially i set all of them to the type of object as per advise. But then pipeline could not run at all and gave this error: image

gntpet avatar Sep 09 '24 12:09 gntpet

wow - strange - will have a look.

freddydk avatar Sep 09 '24 12:09 freddydk