Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I was able to copy the Settings > Git Hub Repo selection from another app into this app and its working, but I'd still like to understand why I can't select that option normally.
I used the CI CD template - commit app to Github automation as a base to to build my own automation with some tweaks. Its been working fine, but today I was asked to build a similar automation with a schedule rather than the app published trigger. I downloaded my original automation JSON and uploaded it to a new automation. In the original automation I use the input tool to populate a value in the Settings object variable (this variable is in the original template app) but I didn't need to do that for this new version so I disabled the input block and manually filled in the value in the Settings object variable. When I went to update some other tools I noticed it only lets me select the Settings variable as a whole, and not any one key/value pair in it. I even went back to the original template app as well as the app I made a copy of and they are both doing the same thing. I'm assuming it's operator error and I am forgetting some crucial detail, but I even tried entering it manually using {$.Settings.GitHubRepo} and it still grabs the whole Settings object. You can see in the screenshot where it let me select the Git Hub User key/value pair when I originally built the app and it does show me the 3 key/value pairs available to pick from but when I click on any one of them it only populates the field with Settings instead of Settings > Git Hub Repo. I am not sure if its showing this selection properly or not though as I noticed it does not have the key name before each value. Perhaps this is the way its supposed to be, I don't recall from using it previously how it should look. If I use an output tool and click on any one of the 3 selection options you see in the screenshot, it out puts each key and its value. What am I doing wrong?
Almost forgot, this is what the raw input of the variable looks like if it helps. I edited the actual values, but otherwise thats what it looks like.
{
"GitHubUser": "User",
"GitHubRepo": "Repo",
"GitHubBranch": "main"
}
I feel like it should look more like this. This one even has the search in json option. I'm not overly familiar with json, but I'm assuming my object variable should be a json right? The settings variable is definitely set as an object not a list or anything else.
The automation is connected to my works github. Will sharing the workspace or json file expose the login credentials? I'd prefer not to share it. I can say I created a new automation this morning using the Commit an app to GitHub template and it is doing the same thing, so you might be able to try that for testing. When I try to add a field from the Get App Information tool it shows the data in a JSON format and I can select an individual piece of data from it, but when I try to do the same with the settings variable, which is an object, it does not display in the JSON format and clicking any one of the 3 options, user, repo, or branch just enters the whole settings variable