muhamedzeema / appgallery-deply-action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error "While parsing a block mapping, did not find expected key."

tocalvo opened this issue Β· comments

Hi! πŸ‘‹

We are going to release our app to the Huawei app gallery, and found this action, so looks perfect!
But looks like is giving us this error:

Download action repository 'muhamedzeema/appgallery-deply-action@v1' Error: muhamedzeema/appgallery-deply-action/v1/action.yml: Error: muhamedzeema/appgallery-deply-action/v1/action.yml: (Line: 7, Col: 19, Idx: 180) - (Line: 8, Col: 13, Idx: 203): While parsing a block mapping, did not find expected key. Error: System.ArgumentException: Unexpected type '' encountered while reading 'action manifest root'. The type 'MappingToken' was expected. at GitHub.DistributedTask.ObjectTemplating.Tokens.TemplateTokenExtensions.AssertMapping(TemplateToken value, String objectDescription) at GitHub.Runner.Worker.ActionManifestManager.Load(IExecutionContext executionContext, String manifestFile) Error: Fail to load muhamedzeema/appgallery-deply-action/v1/action.yml

We add the action using the example:

- name: Deploy to Huawei App Gallery uses: muhamedzeema/appgallery-deply-action@v1 with: client-id: ${{secrets.HUAWEI_CLIENT_ID}} client-key: ${{secrets.HUAWEI_CLIENT_KEY}} app-id: ${{secrets.HUAWEI_APP_ID}} file-extension: "aab" file-path: "./apps/pepephone/android/app/build/outputs/bundle/release/app-release.aab"

Secrets are added but i cant find the error :(

commented

@tocalvo Hi,
please try use uses: muhamedzeema/appgallery-deply-action@main instead of v1

Thanks you so much! Works nice now πŸ˜„ .
Ok, nice nice not because is giving us "Error: [cds]add apk failed, additional msg is [package name already exists]" but looks like something wrong in our side πŸ˜… , not in the action.

Thanks you so much again for the fast response!

commented

@tocalvo Hello,
i think its from my side, i forgot and added .apk for the filename by default. i will revisit it today and will let your know ✌️

fileName: "app-release.apk",