agrc / firebase-website-deploy-composite-action

A GitHub composite action standardizing the UGRC deployment process for firebase websites
MIT License
0 stars 0 forks source link

Handle Multiple Firebase Hosting Targets #48

Closed stdavis closed 1 year ago

stdavis commented 1 year ago

https://github.com/agrc/surface-water-quality has multiple targets configured for firebase hosting. This breaks the jq paths to the preview URL(s). This produces errors like this:

Workflow logs

image

I wonder if there's a way that we can make jq handle this.

Normal single target deploy result:

{
  "status": "success",
  "result": {
    "***": {
      "site": "***",
      "url": "https://***--fix-dec-deps-ipg1ahaf.web.app",
      "version": "",
      "expireTime": "2022-12-23T21:01:29.470124266Z"
    }
  }
}

Multiple targets deploy result:


{
  "status": "success",
  "result": {
    "main": {
      "target": "main",
      "site": "***",
      "url": "https://***--fix-dec-deps-adh1vg14.web.app",
      "version": "",
      "expireTime": "2022-12-23T20:55:52.129931870Z"
    },
    "redirect": {
      "target": "redirect",
      "site": "ut-dts-agrc-surface-wq-redirect-dev",
      "url": "https://***-redirect-dev--fix-dec-deps-h80xl63o.web.app",
      "version": "",
      "expireTime": "2022-12-23T20:55:52.130175309Z"
    }
  }
}